473,396 Members | 1,945 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Malformed email with CDO.Message in ASP

Hello,

We have several cases where an email, send with the CDO.Message object
in ASP, is received malformed at the receiver's e-mail address.
>From the ASP code we send a html email with some tables and other html
code in it. When the message is received at the client's email address
there are some characters or text mallformed, each time at another
position in the e-mail. I know for sure that the html code is valid so
that's not the problem.

The script runs from a Windows 2003 webserver edition with IIS 6.0.
Does this problem sounds familiair to anyone?

best regards,
Jens

Oct 24 '07 #1
4 4925
"Jens" <p.******@gmail.comwrote in message
news:11**********************@v23g2000prn.googlegr oups.com...
Hello,

We have several cases where an email, send with the CDO.Message object
in ASP, is received malformed at the receiver's e-mail address.
From the ASP code we send a html email with some tables and other html
code in it. When the message is received at the client's email address
there are some characters or text mallformed, each time at another
position in the e-mail. I know for sure that the html code is valid so
that's not the problem.

The script runs from a Windows 2003 webserver edition with IIS 6.0.
Does this problem sounds familiair to anyone?
It would be useful if you showed your code so that we could see what you are
doing.

How reproducable is it?
If you send the exact same email to several recipients do they each get a
corrupted copy and are the corruptions the same?

Use a pickup folder configuration where the folder specified is a temporary
folder. Open the resulting eml file in outlook express. Is the content
corrupt?

--
Anthony Jones - MVP ASP/ASP.NET
Oct 24 '07 #2
>
Invoke the page and then open the .eml file created in c:\temp in a outlook
express. Does it look ok? Open it with notepad. Post here the headers at
the top the file and the headers preceeding the HTML body part. I'm
especially interested in Content -Type, Char-set, Transfer-Encoding.

--
Anthony Jones - MVP ASP/ASP.NET

Hello Anthony,

Thanks for your help so far.
I've changed the fields as you supposed. When I open the email in
Outlook Express it seems okay there.

As far as I can see the problems only occur at some email addresses,
because when I send the same email to different addresses it's
received good at some and mallformed at some other.

Please find some headers here:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----
=_NextPart_000_009E_01C816E9.523A6990"
X-Mailer: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2929
Content-Class: urn:content-classes:message

This is a multi-part message in MIME format.

------=_NextPart_000_009E_01C816E9.523A6990
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_009F_01C816E9.523A6990"

------=_NextPart_001_009F_01C816E9.523A6990
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I hope you can see anything strange here?
regards,
Jens
Oct 25 '07 #3
"Jens" <p.******@gmail.comwrote in message
news:11*********************@k35g2000prh.googlegro ups.com...

Invoke the page and then open the .eml file created in c:\temp in a
outlook
express. Does it look ok? Open it with notepad. Post here the headers
at
the top the file and the headers preceeding the HTML body part. I'm
especially interested in Content -Type, Char-set, Transfer-Encoding.

--
Anthony Jones - MVP ASP/ASP.NET


Hello Anthony,

Thanks for your help so far.
I've changed the fields as you supposed. When I open the email in
Outlook Express it seems okay there.

As far as I can see the problems only occur at some email addresses,
because when I send the same email to different addresses it's
received good at some and mallformed at some other.

Please find some headers here:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----
=_NextPart_000_009E_01C816E9.523A6990"
X-Mailer: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2929
Content-Class: urn:content-classes:message

This is a multi-part message in MIME format.

------=_NextPart_000_009E_01C816E9.523A6990
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_009F_01C816E9.523A6990"

------=_NextPart_001_009F_01C816E9.523A6990
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
There should be another part with the Content-Type:text/html further down
the email can I see the headers for that? What you've posted above looks
fine.
--
Anthony Jones - MVP ASP/ASP.NET
Oct 25 '07 #4
Hello Anthony,

Really great, it seems that this solves the problem,
Thanks for you help!
Jens

Oct 25 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Kiran B. | last post by:
hello, Im getting this error everytime i load this page. malformed header from script. Bad header=*** You don't have the (right): c:/program files/apache group/apache/cgi-bin/fig28_18.py I...
8
by: Magnus Lie Hetland | last post by:
According to The Sgmlop Module Handbook , the handle_entityref() callback is called for "malformed character entities". What does that mean, exactly? What is a malformed character entity? I've...
3
by: Gérard Talbot | last post by:
About a month ago, I've reported a crash bug at a wiki webpage where developers of MSIE 7 can read feedback from developers. The strange thing is that a particular malformed webpage can crash MSIE...
6
by: sviau | last post by:
http://www.mls.ca/PropertyDetails.aspx?vd=&SearchURL=%3fMode%3d0%26Page%3d1%26vs%3d1%26rlt%3d%26cp%3d%26pt%3d1%26mp%3d0-0-0%26mrt%3d-1-0-0%26Beds%3d0-0%...
3
by: George Durzi | last post by:
If I try to read a CNET.com RSS feed into a DataSet, I get the following exception The same table (category) cannot be the child table in two nested relations. The exception is thrown...
4
by: Alex | last post by:
Hello all. I have been using visual studio 2003 for several months, and today, I suddenly recieved the following error when I tried to open the web project I have been working on for the last 2...
0
by: Chris | last post by:
Some changed behavior in 8beta1 bit me here and I'm not sure what it is I am doing wrong. This works fine on 7.4. Chris LOG: statement: select...
2
by: Glenn Palomar | last post by:
Hi, I have an xml file that looks like below. It contains a DOCTYPE declaration followed by the data itself. <!DOCTYPE LIB> <LIB version="$Revision: #742 $" date="$DateTime: 2006/10/27...
1
by: Shalako | last post by:
I check my error log and see these entries: malformed header from script. Bad header= Missing gauge reports are ind: padata.pl /perl/pema/padata.pl did not send an HTTP header malformed...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.