Enable SSL in web.config
-
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>
-
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>
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