PDA

View Full Version : Won't Recognize vbCrLf


wengert
09-08-2005, 08:27 AM
I am building a string to be used as the body of an email message. I include some vbCrLf constants but when the email is received they appear as blanks (Chr(20)). How can I insert CrLF for an email message?

------------
Wayne

bruce
09-09-2005, 12:28 AM
vbCRLF should be the right thing to use. i did some test and it worked fine.

see this sample code here

http://kb.discountasp.net/article.aspx?id=10019

Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

wengert
09-09-2005, 12:44 AM
Thanks for the response. It must be some setting in my email client? I replaced vbCrLF with the HTML "[b]" and that works fine.


------------
Wayne

bruce
09-09-2005, 05:57 AM
ah.. ic

Your email is probably formatted at text/html. In HTML, Linefeed is simply ignored.

Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

wengert
09-09-2005, 06:26 AM
Bruce;


Thanks for the response. I hadn't thought of that. I am sending as HTML.


Always another pitfall and I manage to step in most of them <smile!>


------------
Wayne