Mahernoz Daruwala

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

  Home  |   Contact  |   Syndication    |   Login
  12 Posts | 3 Stories | 13 Comments | 0 Trackbacks

News

Archives

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
posted on Thursday, January 25, 2007 4:34 PM