Click to See Complete Forum and Search --> : CF cfmail problem with image map


moiseszaragoza
06-10-2009, 03:25 PM
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



<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>

WolfShade
06-11-2009, 02:58 PM
You need to escape the first # (what CF uses to indicate code specifically for CF) with another #.


usemap="##Map"


^_^

moiseszaragoza
06-19-2009, 08:28 PM
Thanks

So the "#" is a escape character