views:

409

answers:

4

We are getting random exclamation (!) mark in email body using CDO object in Classic ASP.

We are not getting this exclamation mark with outlook. Problem only occur with Lotus Notes client. We use IIS SMTP server to send email.

Edit

Set myMail= Server.CreateObject("CDO.Message")
myMail.Subject="Business and Company News on your Mobile Device"
myMail.From="[email protected]"
myMail.To="[email protected]"
htmlbody = htmlbody (coming runtime)
myMail.BodyPart.ContentTransferEncoding = "quoted-printable"
myMail.HTMLBody = htmlbody
myMail.Send

I think client is not using SMTP. But they are using LotusNotes for sure.

A: 

Exclamation marks in emails are usually caused by lines being too long. Dump the email body you're creating in ASP to a file and examine it. Try to split lines at sensible places with newlines. I assume this is a HTML message - place newlines after appropriate HTML tags.

stusmith
+1  A: 

Only difference I see with my code is

 .HTMLBody= psBody
 .HTMLBodyPart.ContentTransferEncoding = "quoted-printable"

So HTMLBodyPart.... in stead of BodyPart.....

Don't know if that makes a difference, but you can try it.

Edelcom
A: 

I appreciate you guys i had the same problem fixed by adding .HTMLBodyPart.ContentTransferEncoding = "quoted-printable"

Grasshopper
A: 

Thank you very much for the answer... I had the same issue!!!

Adding .HTMLBodyPart.ContentTransferEncoding = "quoted-printable" solved it for me!

Yaco Zaragoza