Mahernoz Daruwala

My Articles, My Company , My Life & Dreams...

  Home  |   Contact  |   Syndication    |   Login
  11 Posts | 3 Stories | 3 Comments | 0 Trackbacks

News

Archives

Thursday, January 25, 2007 #

How to send Email in AsP.net?

In Aspx write....

SmtpClient client = new SmtpClient();
MailMessage mail = new MailMessage(From, To, Subject, Body);
mail.IsBodyHtml = true;
client.Send(mail);
return true;


In Web.config

After System.Web











192.168.1.100 = Is Your SMTP Server Address...(You need to configure your SMTP Server
userName = Valid Username
password = valid password