Wrox Programmer Forums
| 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 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
  #1 (permalink)  
Old February 13th, 2006, 02:10 PM
Authorized User
 
Join Date: Jun 2003
Location: Witham, Essex, United Kingdom.
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default Corrupt HTML Body in CDO email

My web pages generate clean HTML code for the email body. Somewhere between a page and the user's inbox (MS Outlook) the HTML is becoming corrupted, with spurious characters being inserted at random points - but not in every email.

I am using CDO to send the mail as follows:

Set objMessage = CreateObject("CDO.Message")
objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.sksl.com"
objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objMessage.Configuration.Fields.Update

Has anyone else encountered this problem, or have any ideas what the cause is?

The problem is becoming serious, as anti-spam software used by network providers is rejecting the corrupted emails which are absolutely fine otherwise.

Thanks
Pat

-------------------
System 3 2000 Limited
www.system3-2000.co.uk (but very out-of-date!)
__________________
-------------------
System 3 2000 Limited
www.system3-2000.co.uk (but very out-of-date!)
  #2 (permalink)  
Old November 26th, 2006, 07:47 PM
Registered User
 
Join Date: Nov 2006
Location: Melbourne, , Australia.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am experiencing the exact same problem when sending email from my website using CDO.

If I preview the value being assigned to HTMLBody prior to sending, all appears fine, but once the email is sent, odd characters are being inserted at different points within the HTML, often corrupting the HTML to the point where the layout of the email is totally changed.

Would be interested to hear if anyone else has experienced this - it seems to be an issue with CDO. I am currently trying to send the same email using ASPMail to see if the problem persists.

Cheers
Matt

  #3 (permalink)  
Old July 26th, 2007, 12:33 PM
Registered User
 
Join Date: Jul 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Pat/Mat:

I saw you guys had this problem long back..
i am having the same problem since couple of days.
did you find any solution..?
Please let me know.

Thanks,
--Yahuja
  #4 (permalink)  
Old July 26th, 2007, 05:14 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Sounds odd! Are you using CDOSYS to send mail? If not I suggest changing, this is now the reccomended mail method - works fine for me....

Wind is your friend
Matt


Similar Threads
Thread Thread Starter Forum Replies Last Post
TextBox for Email body snufse ASP.NET 2.0 Basics 6 January 16th, 2008 12:01 PM
Excel VBA - Send email with html message body elad Excel VBA 1 July 16th, 2007 03:28 PM
Formatting Body of Email murfinp General .NET 0 August 18th, 2006 05:44 AM
how to send HTML email by using CDO.Message ittech Classic ASP Basics 2 January 10th, 2006 06:49 PM
How to send HTML email by using CDO.Message ittech Classic ASP Components 1 January 10th, 2006 06:48 PM





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