Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 2nd, 2007, 07:22 AM
Authorized User
Join Date: Oct 2006
Location: , , .
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default CDO email - missing characters

Strange problem in sending email using CDO.

Urgent help needed.


Set myMail=CreateObject("CDO.Message")
eText = "aaaaa"
myMail.HTMLBody = eText
set myMail=nothing


"aaaaa" here represents a long string of several thousand characters.

There are two symptoms I've noticed:

1. In my outlook express inbox, the auto-generated email misses out a character (the 1023rd character).
2. The same email in my hotmail inbox does not have a missing character, but has a spurious inserted space withing the message (not sure exactly where, but possibly at position 1023 also).

Both of these scenarios are unacceptable, as my email contains information which MUST be presented absolutely accurately (including username and password details).

This is a very urgent situation. Is this a bug in CDO object?

PLEASE - if you know anything about this, please help me with it urgently. I need to find a solution.

Reply With Quote
  #2 (permalink)  
Old April 3rd, 2007, 06:31 AM
Authorized User
Join Date: Oct 2006
Location: , , .
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts

Yes, this is a booster post for this topic, but I am very anxious to resolve this issue quickly. It is crucial for my application.

Surely someone must know something about this?


Reply With Quote
  #3 (permalink)  
Old April 17th, 2007, 09:18 AM
Authorized User
Join Date: Oct 2006
Location: , , .
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts

Obviously, no-one has tried to send long HTML emails before by the CDO email object. I must be the first in the world, which is interesting.

Here is a fix for this problem, that worked for me.

After every few lines (every couple of hundred characters), add this line:

eText = eText & vbCrLf

Where eText is the HTML-formatted string you are creating.

Reply With Quote
  #4 (permalink)  
Old May 2nd, 2007, 10:31 AM
Registered User
Join Date: May 2007
Location: Worcester, None, United Kingdom.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Banksie

I have been looking for this and all i know is that its more complicated than (http://www.w3schools.com/asp/... the rest) if that where you got it from...

Freeasp.com forums has the same thing....

they sed that you there is more to it than that,

he sed use this [link]http://quadcomm.com/tips/sendCDOSYSmail.txt[/link]

i hope this helps!

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
CDO Email error Treefarn Classic ASP Professional 10 February 20th, 2007 02:39 PM
CDO email BananaJim Classic ASP Professional 6 January 27th, 2007 08:04 PM
CDO external email error in ASP Robert02 Classic ASP Professional 0 July 5th, 2006 04:28 PM
Sending Email from ADP using CDO Scripts82 Access VBA 2 March 29th, 2006 10:50 AM
how to send HTML email by using CDO.Message ittech Classic ASP Basics 2 January 10th, 2006 06:49 PM

All times are GMT -4. The time now is 04:28 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.