i have used system.net.mailmessage to do this.
But i dont get this working.I now that i need to change some data in web.config file.Can some one help me out with this ??
This is my code :
MailMessage mm=new MailMessage("firstname.lastname@example.org","email@example.com","Hello This is your password",pass);
SmtpClient cl = new SmtpClient();
cl.Host = ConfigurationManager.AppSettings["SMTP"];
This is what i have changed in web.config file
<add key="SMTP" value="mail.site.com"/>
mail.site.com is my local smtp server to which i tried to ping and it is working too.
View Complete Post