View Single Post
  #1 (permalink)  
Old 10-09-2008, 09:03 PM
StearmanDriver
 
Posts: n/a
Diggs:
Default cfmail - works locally but not when uploaded

Hi,

I'm using cfmail with form variables for the email addreses. It's so users
can send email to political candidates. Here's the code:

<cfoutput>#Form.semails#</cfoutput>,<cfoutput>#For m.hemails#</cfoutput></p>
<cfmail to="#Form.semails#,#Form.hemails#" replyto="#Form.useremail#"
failto="nosuch@sbcglobal.net" from="#Form.useremail#" subject="Keep Maine
Toxin-Free!" server="mail.nosuch.com" port="26" timeout="40"
username="none@nosuch.com" password="nosuch">
#Form.usermessage#
</cfmail>

The form submit page collects those variables and passes them as form
variables - GET. The "to" field in cfmail is populated by hidden fields that
contain session variables... they're forwarded on as those .semails and
..hemails form variables. Actual values have been replaced with "none" or
"nosuch" for security, but you can see the structure anyway.

This works when run locally, sends the emails as it should. When uploaded
exactly as is to godaddy's server, it doesn't send emails. Doesn't throw any
errors, the form results page displays as it should... but the emails just
never get sent.

I'd really appreciate any ideas...
Joe



Reply With Quote
Sponsored Links