Results 1 to 8 of 8

Thread: Exclamation mark appearing in email body

  1. #1

    Thread Starter
    Hyperactive Member greg_quinn's Avatar
    Join Date
    Nov 2002
    Location
    South Africa
    Posts
    366

    Exclamation Exclamation mark appearing in email body

    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

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Can you replicate this?
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3

    Thread Starter
    Hyperactive Member greg_quinn's Avatar
    Join Date
    Nov 2002
    Location
    South Africa
    Posts
    366
    Of course, every time.

    Hasn't it got something to do with the Encoding type...?

  4. #4
    New Member
    Join Date
    Dec 2004
    Posts
    1

    Re: Exclamation mark appearing in email body

    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

  5. #5
    New Member
    Join Date
    Sep 2005
    Posts
    1

    Unhappy Re: Exclamation mark appearing in email body

    I am in same trouble. If you know the solution please post it.
    I really appreciate your help.
    Thanks
    Hari

  6. #6
    New Member
    Join Date
    Oct 2005
    Posts
    1

    Re: Exclamation mark appearing in email body

    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.

  7. #7
    New Member
    Join Date
    Jul 2010
    Posts
    1

    Re: Exclamation mark appearing in email body

    Yes, try seperating any long strings with a vbNewLine

  8. #8
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Exclamation mark appearing in email body

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width