08 August 2008


//use this name space.

using System.Net.Mail;


//User this code

MailMessage mail = new MailMessage();

//this is the main line to show friendly name in receiver's inbox.
mail.From = new MailAddress("saaction@myserver.com", "saAction Test Mail");

mail.To.Add("receiveremail@soomeserver");

mail.Subject = "Some Subject";

mail.Body = "see the friendly name in place of email address!";

SmtpClient objSMTP = new SmtpClient("Server IP");

objSMTP.Send(mail);


Lets' see the result.

0 comments :

Post a Comment