MailMessage message = new MailMessage();
message.BodyFormat = MailFormat.Html;
message.To = "abc@bac.com";
message.Subject = "SMTP Mail Test";
message.BodyEncoding = System.Text.Encoding.UTF8;
message.From = abc@bcd.comcd.com;
message.Body = "<B>Hello</B>";
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1" );
//Mail account
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "" );
//Password
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "" );
SmtpMail.SmtpServer = "MailServer";
SmtpMail.Send(message);
message.BodyFormat = MailFormat.Html;
message.To = "abc@bac.com";
message.Subject = "SMTP Mail Test";
message.BodyEncoding = System.Text.Encoding.UTF8;
message.From = abc@bcd.comcd.com;
message.Body = "<B>Hello</B>";
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1" );
//Mail account
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "" );
//Password
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "" );
SmtpMail.SmtpServer = "MailServer";
SmtpMail.Send(message);