WebHosting

Wednesday, June 29, 2011

SmtpMail and Mail Message

using System.Web.Util 
sendmail()
{
            MailMessage mailMsg = new MailMessage();
            mailMsg .From = "
from@fromServer.com";
            mailMsg .To = "
to@toServer.com";
            mailMsg .Cc = "
cc@ccServer.com"";
            mailMsg .Bcc = "
bcc@bccServer.com";
            mailMsg .Subject = "SubjectOfTheMailString";
            mailMsg .Body = "BodyOfTheMailString";
            SmtpMail.Send(mailMsg ); 

}

No comments:

Post a Comment

Thank you for Commenting Will reply soon ......

Featured Posts

Warp AI Terminal 🔥 | The Future of Coding? Agentic Dev Environment Explained!

  Warp AI Terminal 🔥 | The Future of Coding? Agentic Dev Environment Explained! What if your terminal could think, assist, and even act li...