<body='<html><table style="width:100%;border:solid 2px black"><tr style=" border:solid 2px black"><td colspan='6'>Venue Booking Report For Date: 18/05/2013</td></tr><tr style=" border:solid 2px black"><td><b>Time From</b></td><td><b>Time To</b></td><td><b>Location</b></td><td><b>Booked By</b></td><td><b>Description</b></td><td><b>Facilities Required</b></td></tr><tr><td>08:30 AM</td><td>09:00 AM</td><td>T-3 Disscussion Room II (3rd Floor)</td><td>Vikas Chandok</td><td>For Students - Victim Assistance Programme</td><td>Water</td></tr><tr><td>08:30 AM</td><td>05:30 PM</td><td>T-3 Conference Room (2nd Floor)</td><td>Mandeep Kaur</td><td>Centralized Evaluation Centre</td><td></td></tr></table></html>'
MailMessage message = new MailMessage(); SmtpClient client = new SmtpClient(); try { message.From = new MailAddress(fromemail, fromname); message.Subject = subject; message.Body = body; message.IsBodyHtml = true; message.To.Add(new MailAddress(to)); if (cc != "") { foreach (string str in cc.Split(new char[] { ',' })) { message.CC.Add(new MailAddress(str.Trim())); } } if (bcc != "") { foreach (string str2 in bcc.Split(new char[] { ',' })) { message.Bcc.Add(new MailAddress(str2.Trim())); } } client.Host = server; client.EnableSsl = true; NetworkCredential credential = new NetworkCredential { UserName = new MailAddress(fromemail, fromname).Address, Password = frompwd }; client.UseDefaultCredentials = true; client.Credentials = credential; client.Port = 0x24b; client.Send(message);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)