homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

My line feeds don't show up in outlook
From a CDO message sent from webserver

 5:47 am on Jun 10, 2005 (gmt 0)

I'm trying to send a text only email, but my line feeds are lost when the email comes in. I'm using something like this:

mailbody = "Something on this line" & vbCrLf & "Something on this line too"

CDO.TextBody = mailbody

What do I use to get my line feeds to show up in a text only email? If I view the message source the line feeds are there, it just doesn't display them in outlook.



 6:53 am on Jun 10, 2005 (gmt 0)

Are you certain you aren't sending the messages as HTML?


 1:40 pm on Jun 10, 2005 (gmt 0)

No, I'm not :) I'm assuming that when you set the TextBody it sends as text?

Here's my code:

Ahhh, guess what. I just found the problem. For some reason the include with the modified sub routine didn't get published with the rest :o I'm at home now and connecting straight to the server, that's why I only just noticed it. I havn't tested but I'm guessing that's the problem :) Thanks. Always the little things, isn't it ;)

Receptional Andy

 2:08 pm on Jun 10, 2005 (gmt 0)

It may also be the 'remove line breaks' feature in Outlook:


Global Options:
 top home search open messages active posts  

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved