IIS and SMTP - Email Truncation Problem on Win2003/IIS6 Servers

This is Interesting: Free IT Magazines  
Home > Archive > IIS and SMTP > December 2004 > Email Truncation Problem on Win2003/IIS6 Servers





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Email Truncation Problem on Win2003/IIS6 Servers
Jeff

2004-12-08, 7:50 am

We're experiencing a problem on two different Win2003/IIS6 boxes that seems
to be similar to a problem described in the Help and Support article 302935
(http://support.microsoft.com/defaul...kb;en-us;302935), "XADM:
Exchange Server May Return Truncated Message Text If the CDO Application Is
Running as a Service"

When sending HTML-Body emails from ASP pages using code similar to...

Set myMail=CreateObject("CDO.Message")
With myMail
..To = "someone@anywhere.com"
..From = "someone.else@someplace.com"
..Subject = "Truncation in HTML Email"
..HTMLBody = strEmailHtmlBody
..Send
End With

....blocks of text greater than about 4K between html tags are being
truncated to approximately 4K. For example if my strEmailHtmlBody is a string
of text something like....

<html>
<head>
<title>my email form</title>
</head>
<body>
<p>blah blah blah blah....[5K of text in the first paragraph]...blah blah
blah THE END</p>
<p>blah blah blah blah....[5K of text in the second paragraph]...blah blah
blah THE END</p>
</body>
</html>

.... then the resulting email message will have each of the paragraphs
truncated to only about 4K of text with the closing paragraph tag missing.

If we load cdonts.dll onto the server and send the same message using the
cdonts.NewMail object...

Set cdo = Server.CreateObject("CDONTS.NewMail")
With cdo
..To = "someone@anywhere.com"
..From = "someone.else@someplace.com"
..Subject = "Truncation in HTML Email"
..BodyFormat = 0
..MailFormat = 0
..Body = strEmailHtmlTemplate
..Send
End With

....then the message sends just fine...no truncation! It seems like there is
a problem with the CDO library.

Is this a known bug and if so, is there a fix?
Can anyone else re-create this problem?

Any help would be greatly appreciated! Thanks.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com