gremlins in hotmail from cfmail tage

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default gremlins in hotmail from cfmail tage

    Hi
    Newbie so sorry if this is in wrong forum.

    We are sendingmultipart mail to mailing lists, works fine except that mail
    viewd in the hotmail web browser displays strange characters. usually caused by
    html entity code ie  .

    we can get around those by deleting them and just typing in a space via space
    bar.

    But we can not get rid of this...

    ???

    which appears at the top of every message sent through cfmail even if the html
    message that we send is simplified to the extreme e.g <b>test</b> displays as...

    ???
    testtest

    any ideas anyone ?

    thanks

    covretro Guest

  2. Similar Questions and Discussions

    1. Can Format="flash" existist in a <table> tage?
      I use an html template for my site with navigation on the top, and and editable region in the center. I am noticing that when ever I try to place a...
    2. CFMAIL and HTML Mail (Yahoo and Hotmail)
      I am having some display issues when using cfmail to send email from a site. The following chars are always present while viewing an HTML message...
    3. Sending Flash animations to Yahoo/Hotmail accounts, using CFMAIL???
      I have a monthly e-newsletter I send out for a client. In the past, it has been working fine, but now I'm trying to send/embed a Flash swf file...
    4. <cfmail></cfmail> in a script
      I am wondering if I can put <cfmail> tags and code within a javascript script. will the browser recognize it, and perform the instructions? ...
    5. cfmail - Attribute validation error for tag CFMAIL.
      I'm getting the error ' Attribute validation error for tag CFMAIL.' on the code below. All its doing is outputting a text string to the TO: field. ...
  3. #2

    Default Re: gremlins in hotmail from cfmail tag

    What does your CFMail tag look like? Show us some code.

    Swift
    Swift Guest

  4. #3

    Default Re: gremlins in hotmail from cfmail tag

    That looks like a byte order mark (BOM) that would appear in the top of a UTF-8
    encoded document. I'll bet you the HTML generated by CFMAIL is UTF-8 encoded,
    and that Hotmail is incorrectly interpreting the BOM and is trying to render it
    inline.

    I wonder if you could try setting the enctype attribute to UTF-8. Not sure
    that would fix it, as I believe Hotmail strips everything outside of the
    <body></body> tags and replaces it with its own <html><head>... contents. Worth
    a try though...

    skozey Guest

  5. #4

    Default Re: gremlins in hotmail from cfmail tag

    What Skozey said. Looks like a BOM alright.

    If you are manually setting the encoding (see below), stop doing that and let
    CF do its own thing.

    This is CF 6 or higher, right?

    Also if you are somehow doing a full html page with the complete wrapper
    around the html that would be a bad thing as well.

    as in writing a message like this:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html><head>
    <META http-equiv="Content-Type" content="text/html; charset=utf-8">
    <html><head><title>my message</title>
    </head>
    <body><p>My Message Here</p></body></html>

    You should only insert <p>My Message Here</p> inside of cfmail.

    HtH,

    --Matt--
    MSB Web Systems... [url]http://mysecretbase.com[/url]
    Landru! Guide us!
    - A Beta 3 person, "The Return of the Archons," stardate 3157.4


    BEFORE:
    -----------
    <cfset variables.ContentValue="text/html; charset=utf-8">
    <cfmail
    to="you"
    from="me"
    server="myserver"
    subject="stuff"
    type="HTML">
    yoo hoo
    <cfmailparam name="Message-ID" value="<#CreateUUID()#@#myserver#>">
    <cfmailparam name="Content-Type" value="#variables.ContentValue#">
    </cfmail>

    AFTER:
    -----------
    <cfmail
    to="you"
    from="me"
    server="myserver"
    subject="stuff"
    type="HTML">
    yoo hoo
    <cfmailparam name="Message-ID" value="<#CreateUUID()#@#myserver#>">
    </cfmail>

    MattRobertson Guest

  6. #5

    Default Re: gremlins in hotmail from cfmail tag

    thanks for the response guys,
    I will try a couple of the suggestions here and post some code when I return
    from vacation.
    One note the html content comes from a form.
    We copy the #form.html# content into a file on the server (in case we need to
    retrieve it).
    We then include this file in the html portion of the cfmultipart tag.
    Now the problem goes away if instead of the above we use #form.html# directly
    in the cfmultipart (missing out the include step).It seems that the processing
    of the include does something that hotmail does not like. Hotmail also displays
    html entity codes like &nbspc; as a gremlin.

    Thanks in advance,

    Gary


    covretro Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139