Vishwas Kadamannaya

Vishwas Kadamannaya

  • 1.6k
  • 122
  • 142.5k

How to change font color of Message body

Jul 4 2011 7:14 AM
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

Answers (5)