www.webdeveloper.com
Results 1 to 3 of 3

Thread: CF cfmail problem with image map

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Ft Lauderdale
    Posts
    299

    CF cfmail problem with image map

    i am trying to send a email with a image map but that is not working properly.
    It gives me a error when it sees the "#" and that is part of the name of the immage map?

    WHat can id do?

    my code is below

    PHP Code:

    <cfoutput>
    <
    cfmail 
    from
    ="me@xxxxxx.com"
      
    to="#to.email#"
      
    cc="me@xxxxxx.com"
      
    bcc="moiseszaragoza@yahoo.com"
      
    subject="Model Productions Audition Confirmation"
       
    server="relay-hosting.secureserver.net" type="html">
         
    server="relay-hosting.secureserver.net" type="html">


    <!
    DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <
    html>
    <
    head>
    <
    meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">


    </
    head>

    <
    body>
    <
    table border=0 cellpadding=0 cellspacing=0 bgcolor=black width=670>
        <
    tr>
            <
    td>
                <
    img src="http://xxxxxx.com/_images/email/emailheader.jpg" width="612" height="346" border="0" usemap="#Map">
                
            </
    td>
        </
    tr>
        </
    table>
    <
    map name="Map">
        <
    area shape="circle" coords="67,168,64" href="href=http://www.xxxxxx.com/">
        <
    area shape="circle" coords="536,175,67" href="http://www.xxxxxx.com/">
        <
    area shape="circle" coords="412,286,67" href="http://xxxxxx.com/">
        <
    area shape="circle" coords="202,287,67" href="http://www.xxxxxx.com/">
    </
    map>
    </
    body>
    </
    html>

    </
    cfmail>
    </
    cfoutput

  2. #2
    Join Date
    Dec 2002
    Location
    St. Louis, MO, USA
    Posts
    1,582
    You need to escape the first # (what CF uses to indicate code specifically for CF) with another #.

    Code:
    usemap="##Map"
    ^_^

  3. #3
    Join Date
    Feb 2006
    Location
    Ft Lauderdale
    Posts
    299
    Thanks

    So the "#" is a escape character

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles