Using Gmail (or Google Apps Email) as SMTP server in ASP.NET

by Sai Dasari 28. January 2011 11:25

The following web.config settings will enable your ASP.NET website to send emails using gmail account or google apps account.


<system.net>
<mailSettings>
<smtp from=”emailid@gmail.com” deliveryMethod=”Network”>
<network host=”smtp.gmail.com” port=”587′ userName=”emailid@gmail.com”
password=”YourPassword” enableSsl=”true”></network>
</smtp>

</mailSettings>
</system.net>



 

Tags:

asp.net

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading


About the author

Software Development Professional & Entrepreneur.

Month List