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

#Linux Commands Unveiled: #date, #uname, #hostname, #hostid, #arch, #nproc

 #Linux Commands Unveiled: #date, #uname, #hostname, #hostid, #arch, #nproc Linux is an open-source operating system that is loved by millio...