Been racking my brain most of the afternoon on this one, if anyone can shed any light, i would really appriciate it.
Basically I am pulling the body of an email out as text not HTML into a variable called Description (string), if i show the variable in a msgbox it is formatted in terms of line breaks etc.
I then add the description variable to a line in an HTML formatted email, the email is perfect except the Description variable which has no line breaks etc, so it all appears on one line.
Any thoughts?
Here's the HTML code:
Expand|Select|Wrap|Line Numbers
- mail.IsBodyHtml = True
- mail.Body = "<!DOCTYPE html PUBLIC ""-//W3C//DTD XHTML 1.0 Transitional//EN"" ""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd""> " &
- "<html xmlns=""http://www.w3.org/1999/xhtml"">" &
- "<head>" &
- "<style type=""text/css"">" &
- "body {background-color:ffffff;background-image:url(http://);background-repeat:no-repeat;background-position:top left;background-attachment:fixed;text-align:left;font-family:Garamond;font-size:14px;font-style:normal;font-weight:550;color:000000;}" &
- "</style>" &
- "</head> " &
- "<body>" &
- "<p>--------------------------------------------------------------</p>" &
- "<p></p>" &
- description &
- "<p></p>" &
- "<p>--------------------------------------------------------------</p>" &
- "</body>" &
- "</html>"