Hi All,
I use the below code to send mail message to particular email. how i can change the font and its color of string message .
public void SendMailMessage(string from, string to, string bcc, string cc, string subject, string body)
{
SmtpClient emailClient = new SmtpClient("");
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage(from, to, "Mail", body);
message.IsBodyHtml = true;
System.Net.NetworkCredential SMTPUserInfo = new System.Net.NetworkCredential("", "");
emailClient.UseDefaultCredentials = false;
emailClient.Credentials = SMTPUserInfo;
emailClient.Port = 25;
emailClient.Host = "";
emailClient.Send(message);
}
Thanks in Advance
Loading

VulpesRank #55 · 29.2K reputationPosted Jul 4, 2011, 3:37 AM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Jul 4, 2011, 12:10 PM EDT
waqas memon141 reputationPosted Jul 5, 2011, 5:39 AM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Jul 5, 2011, 8:58 AM EDT
Vishwas Kadamannaya111 reputationPosted Jul 5, 2011, 9:25 PM EDT
Thanks Vulpes , its wrking fine...