2014/08/24

Sending email using gmail smtp from Azure Cloud Service

Error:
System.Net.Mail.SmtpException: The SMTP server requires a secure connection
or the client was not authenticated. The server response was:
5.5.1 Authentication Required. Learn more at
view raw gistfile1.cs hosted with ❤ by GitHub
Add to web.config:
<system.net>
<mailSettings>
<smtp deliveryMethod="Network">
<network defaultCredentials="false" enableSsl="true" host="smtp.gmail.com" port="587" userName="xxxxxxx@gmail.com" password="xxxxxxxxxxx"/>
</smtp>
</mailSettings>
</system.net>
view raw gistfile1.cs hosted with ❤ by GitHub
http://stackoverflow.com/questions/11018233/cannot-use-gmail-smtp-from-azure-cloud-service

No comments:

Post a Comment