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

How do I work around the limitations?

 2:59 am on Apr 27, 2006 (gmt 0)

The cdo.message object seems like its limited to only allow 2k worth of data in an email... I need to send html reports that are 2-3 times that size.

When I set this property...
cdoMailMessage.HTMLBody = sFormattedMailContents

My html gets lopped off right at 1.8k. Anyone else have this problem? Was there a workaround?



 3:41 pm on May 3, 2006 (gmt 0)

Are these reports also stored on the server? If so, you could try this property.


Here's a link that talks about it in detail. Create MHTML Body Method [interlacken.com]

If not, I haven't experienced the problem you are having, but I did read that if you are using textbody, then there is a limitation.


 4:21 pm on May 3, 2006 (gmt 0)

No they're built on the fly from database results when a scheduled task kicks off.


 5:59 am on May 4, 2006 (gmt 0)


Thank you for bringing this up. Very interesting reading about this issue. Learn something every day because of this place :)

I had an issue with this a long ways back and eventually gave up trying to insert the contents into the body of the email, instead programmatically attaching a file of the text and sending it off that way.

Apparently, there is ~1k limit on each line of the message body, so if you just put in a few well placed Carriage Return Line Feeds(every < 1k), that should fix your problem.. the limit for the body is set at the mail server, and most are > 5MB.




 1:01 pm on May 5, 2006 (gmt 0)

emsaw... thanks for sharing the knowledge. I'll try that suggestion!

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