Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Enable SSL in web.config

Enable SSL in web.config

Scheduled Pinned Locked Moved ASP.NET
sysadminhelpcsharpcomsecurity
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    solarthur01
    wrote on last edited by
    #1

    I am using .net to send email in an application, however im getting the following error: "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first u1sm554149uge.14 " heres my web.config <mailSettings> <smtp from="solarthur01@gmail.com"> <network host="smtp.gmail.com" password="pass" port="587" userName="user@gmail.com" /> </smtp> </mailSettings>

    N 1 Reply Last reply
    0
    • S solarthur01

      I am using .net to send email in an application, however im getting the following error: "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first u1sm554149uge.14 " heres my web.config <mailSettings> <smtp from="solarthur01@gmail.com"> <network host="smtp.gmail.com" password="pass" port="587" userName="user@gmail.com" /> </smtp> </mailSettings>

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Besides being a horrifically bad idea to hard code user name and password into your config file, you can't use Gmail as a relay host anyway.


      only two letters away from being an asset

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups