0

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>
Jon Wilson
  • 726
  • 1
  • 8
  • 23
  • Works fine for me on CF9. What version are you using? – Josh Jun 16 '11 at 14:24
  • I am using CF8. Or could there be an email configuration problem, I wonder? – Jon Wilson Jun 16 '11 at 14:28
  • 1
    dump the form scope out and abort the page processing before the email is sent. See what, if any, differences there are in the passed values. I cannot see anything that looks wrong there but that's the easiest way to make sure the values are what you expect them to be. – Rob Barthle Jun 16 '11 at 15:56
  • 2
    @Jon Wilson - `#Form.SSN#` You are not really emailing social security numbers .. right? – Leigh Jun 16 '11 at 16:09
  • @Rob Barthle - Thanks for the suggestion. I added to the page but all looks normal. – Jon Wilson Jun 16 '11 at 17:58
  • @Leigh - Excellent question. No, the original mask was a different type of code, but I thought this example would be clearer. – Jon Wilson Jun 16 '11 at 18:05
  • 1
    @Jon Wilson - Phew.. I was scared for a minute ;) I do not see an obvious reason it would not work. But did you check the undelivr mail folder to see if the message is there? If it is your server, could also enable debugging. See debug="true" http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7f8e.html – Leigh Jun 16 '11 at 18:17

1 Answers1

-1

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>
MadushM
  • 397
  • 3
  • 17