p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP Professional (http://p2p.wrox.com/forumdisplay.php?f=63)
-   -   CDO email - missing characters (http://p2p.wrox.com/showthread.php?t=56149)

BananaJim April 2nd, 2007 07:22 AM

CDO email - missing characters
 
Strange problem in sending email using CDO.

Urgent help needed.

-------------------------

Set myMail=CreateObject("CDO.Message")
myMail.Subject="xxx"
myMail.From="xxx@xxx.com"
myMail.cc="xxx@xxx.com"
eText = "aaaaa"
myMail.HTMLBody = eText
myMail.Send
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.

Thanks.

BananaJim April 3rd, 2007 06:31 AM

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?

Thanks.


BananaJim April 17th, 2007 09:18 AM

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.


Banksie May 2nd, 2007 10:31 AM

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!

Banksie


All times are GMT -4. The time now is 01:13 PM.

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