StringBuilder mailbody = new StringBuilder();
//message.Body.BodyFormat = message.Body.Html;
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();
string email = strEmail.ToString().Substring(1, strEmail.ToString().Length - 1);
string[] emailList = email.Split(',');
for (int j = 0; j < emailList.Length; j++)
{
message.To.Add(new System.Net.Mail.MailAddress(emailList[j]));
message.Subject = "Appointment of Council's Inspectors";
message.Body = StrInspector + "," + city + "," + StrMobile + " \n This is Confirmation mail that You have been appointed for inspection as per Your "
+ "availity after Telephonic Discussion.\n\n" +
"Particulars for the inspection to be held as under:-\n" +
" Course:-" + insptype + "\n" +
" Purpose:-" + subinsptype + "\n" +
" Seats:-" + toSeat + "\n" +
" City:-" + city + "\n" +
" State:-" + State + "\n" +
" Date:-" + FormDate + "To" + ToDate + "\n \n" +
"You will get a Formal Letter from DCI including all details about the College to be inspected\n" +
"before one day to inspection to be held through mail\n\n" +
" The Dental Council of India has engaged M/s Balmer Lawrie & Co.Ltd., a Govt.of \n" +
" India authorized travel partner to make bookings of air-tickets,hotel accommodation \n" +
" and taxi for all the inspectors/Visitors of the Council while going on DCI inspection. \n" +
" Therefore the said travel partner will contact you regarding your travel plan and will \n" +
" make travel arrangements accordingly.in case of any query and clarification you may \n" +
"contact the travel partner's representative Mr.Omprakash at 9899604205,011- \n" +
"42524112 or E-mail:prakash.o@balmerlawrie.com & ridhi.s@vacationsexotica.com\n\n" +
"<Now, you are requested to complete your preparation for the aforesaid inspection.in case\n" +
"<of any query you may contact us: Contact No.011-23236544 & 9818189120 and E-mail us\n" +
"<at:inspection@dciindia.org\n\n" +
"Please acknowledge the receiving immediately by E-mail\n" +
"reply on inspections@dciindia.org.\n\n\n" +
"Thanking You\n\n" +
"Secretary\n" +
"Dental Council of India\n" +
"New Delhi\n\n" +
"Copy to:\n" +
"Mr.Omprakash and Ms.Ridhi,M/s.Balmer Lawrie & Co.Ltd.for furtherance in the\n" +
"matter.";
}
message.IsBodyHtml = false;
MailAddress fromAddress = new MailAddress("xxxxx", "xxx");
message.From = fromAddress;
//added New
MailAddress copy = new MailAddress("xxxxxxx.com");
message.CC.Add(copy);
//End
SmtpClient smtp = new SmtpClient();
smtp.Host = "mail.dciindia.org";
//smtp.EnableSsl = true;
NetworkCredential credential = new NetworkCredential("ixxxxxx", "xxxxxx");
smtp.Credentials = credential;
smtp.Port = 26;
smtp.Send(message);
What I have tried:
above is my code and i want to know how to bold size in mail body i am try to use
for Bold but it is not working so kindly help me