I am using system.web.mail to send an email from a web page.
Now and again I am getting random characters in the message body, especially exclamation marks (!)
How can I prevent this from happening?
Thanks
Printable View
I am using system.web.mail to send an email from a web page.
Now and again I am getting random characters in the message body, especially exclamation marks (!)
How can I prevent this from happening?
Thanks
Can you replicate this?
Of course, every time.
Hasn't it got something to do with the Encoding type...?
Hi,
Did you ever get any answer/resolution to this as we have just experienced the same problem - and the location of the inserted ! is really odd - as it appears right in the middle of a line of code, and splits the word image in 2......
<td height="73" colspan="3" bgcolor="#ffffff" align="left" valign="top"><img src="http://www.re-consider.co.uk/image!
!
s/email/wcl_xmascopy.gif" width="414" height="73" alt="Merry Christmas and a Happy New Year from everyone at WCL" border="0"></td>
If it is encoding we are using:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
Hope someone can shed some light on this?
Phil
I am in same trouble. If you know the solution please post it.
I really appreciate your help.
Thanks
Hari
The reason why Exclaimation marks are appearing in random places is because some email gets a bit funny when the html code has lines with more than 512 characters, Break up you html code into smaller lines and the problem should go.
Yes, try seperating any long strings with a vbNewLine
hazz, welcome to the forums!!
Also your contribution to the forums is more than welcome, you have just into a thread that is almost 5 years old. I am hoping that the OP has found the answer that they were looking for a long time ago!!
What I am trying to say is, there really isn't much call for posting into a thread that is this old.
Gary