开发者

ColdFusion bug - cfinput mask doesn't work with cfmail

Using a mask on a cfinput field causes the email to not go through. I remove the mask and the email is sent fine.

<HTML>
<HEAD>
</HEAD>
<BODY>
<cfform method="post" action="submit2.cfm" name="theform">
<cfinput type="text" name="SSN" size="30" mask="999-99-9999">
<input type="submit" name="submit" value="Submit">
</cfform>
</BODY>
</HTML>

and

<CFMAIL 
TO="me开发者_开发知识库@example.com"
FROM="me@example.com"
SUBJECT="?">  
<cfoutput>
#Form.SSN# 
</cfoutput>
</CFMAIL>


it works for me as is(CF9), but since your are on CF8 try adding the cfmail type.

<CFMAIL 
 TO="123@xyz.com"
 FROM="xyzn@123.com"
 SUBJECT="?"
 type="html">
    <cfoutput>
       #Form.SSN# 
    </cfoutput>
</CFMAIL>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜