Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 2nd, 2007, 07:22 AM
Authorized User
 
Join Date: Oct 2006
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")
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.
 
Old April 3rd, 2007, 06:31 AM
Authorized User
 
Join Date: Oct 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

 
Old April 17th, 2007, 09:18 AM
Authorized User
 
Join Date: Oct 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

 
Old May 2nd, 2007, 10:31 AM
Registered User
 
Join Date: May 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Banksie
Default

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





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.