Author: lautaro.arino | Posted on: 7/1/2010 12:20:59 PM | Views : 1041

Hi!
I want to use my gmail account for my webbapps system email. 
This is my webconfig:
 
<system.net> <mailSettings> <smtp deliveryMethod="Network" from="lautaro.arino@gmail.com"> <network defaultCredentials="true" host="smtp.gmail.com" port="587" userName="xxxyyy" password="xxxxxxxx"/> </smtp> </mailSettings> </system.net>
Im using the passwordrecovery control. I have overriden the sen method, because Gmail requires SSL. I have gotten this trick from a tutorial. But any way to make it work will do.
Here is the overidden send method:

protected void PasswordRecovery1_SendingMail(object sender, MailMessageEventArgs e) { MailMessage mm = new MailMessage(); ...

Go to the complete details ...