I am not able to break a string when sending it through mail

MagdrearieNap

New Member
When I use this to send mail the body string does not breaks for which I used
\[code\]NetworkCredential loginInfo = new NetworkCredential("[email protected]", mypassword);MailMessage msg = new MailMessage();msg.From = new MailAddress("[email protected]");msg.To.Add(new MailAddress(tomyclient));msg.Subject = "Message from CLB Website.";msg.Body = "Following message was sent to you :-<br/>" + name + "<br/>" + email_id + "<br/>" + Query;msg.IsBodyHtml = true;SmtpClient client = new SmtpClient("smtp.gmail.com", 587);client.EnableSsl = false;client.UseDefaultCredentials = false;client.Credentials = loginInfo;client.Send(msg);\[/code\]
 
Back
Top