Forum Moderators: open

Message Too Old, No Replies

Email Response has Exclamation Mark

         

Fortune Hunter

2:42 pm on Oct 20, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I am working with my programmer on an eCommerce web site. When someone completes an order they get an automated email order confirmation message.

Our message is set up in HTML. The message has an exclamation mark in the message when it arrives, but the catch is it is NOT on every message and NOT always in the same place. It seems to appear in the same areas, when it does show up, but that also appears to be random. It will be one message then not show up in 7 messages for example then appear again, but in a different spot. It appears to be completely random.

We have re-typed all the code in the message by hand, thinking that when we did a copy and paste from the client's email it copied something weird in there, but that didn't solve it.

The entire site is built on .NET and MS SQL and the confirmation email is HTML. We can't find this mysterious exclamation mark anywhere in the code, which is really frustrating.

If anyone has ever run across this or can give me some idea of where to go look for the solution I would I appreciate it.

marcel

2:59 pm on Oct 20, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



HTML email can act strangely if the length of a line is longer than 512 characters (IIRC), try breaking up the string with Environment.NewLine

VB
dim htmlBody as String = String.Empty
htmlBody = "<p>Lorem Ipsum dolor sit amet, " & Environment.NewLine
htmlBody &= "consectetur adipiscing elit.</p>" & Environment.NewLine

C#
String htmlBody = String.Empty;
htmlBody = "<p>Lorem Ipsum dolor sit amet, " + Environment.NewLine;
htmlBody += "consectetur adipiscing elit.</p>" + Environment.NewLine;

* This is just a quick example, I would recommend using a StringBuilder to build the string