|
The user submit the form and no email is being sent |
|
Issue:
After the form is submitted, the form's owner doesn't get the email.
How to solve:
Here we have possible reasons in the three different scripting languages that Forms To Go supports:
PHP/Perl/ASP:
1- Some email servers do not permit any email different from the domain to prevent spamming. For example:
Your Domain: yourdomain.com Email From:
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
As you see, the domain in the email address doesn't match with the domain of the server. It should be:
Your Domain: yourdomain.com Email From:
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
To hardcode the FROM email address instead of using a field from the form as the email address, go under Settings > Email to Form's Owner - Select Generic for the FROM drop-down menu, enter a valid email address from the domain.
2- The HTML form tag contains the ENCTYPE attribute to upload files and the script has not been created to accept file uploads.
3- The Form method must be the same in the script. If you use POST in the HTML form and GET in the script, or viceversa, the script won't pick the field value correctly, and won't be able to address the destination email. In order to work, it has to be POST-POST or GET-GET.
Under Settings > Languages > {select language} > Form Method - Make sure method selected is the same as in the HTML form.
PHP:
a. Under Settings > Languages > PHP > Mailer - Check "Add init_set(sendmail_from)" checkbox.
b. The last option is to determine if mail service is working by running a basic mail script that has nothing to do with Forms To Go. Create a new file (email.php) with the following code and upload it to the server. Replace
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
with a valid email address from the domain. Run the script at http://www.replace_with_your_domain.com/email.php . If email is still not received, then mail service is not working and you should consult with your hosting provider.
<?php mail("
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
", "Test Subject", "Test Body", "From:
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
"); echo "Email sent"; ?>
PERL:
The created perl script uses sendmail, which is a standard and very used in Unix boxes. However, many security issues and anti spam measures are involved with sendmail, and almost all Unix hosting providers request that you add the -t and -i modifier to the sendmail path like this:
/usr/sbin/sendmail -t -i
Also, many other hosting providers request to use -f flag as an anti spam measure, which set the "from" address on the email to your real email address and the email won't go thru if you don't set this flag like this:
/usr/sbin/sendmail -t -e
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
You must ask your hosting provider for the exact path of sendmail and flags or modifiers that must be used.
PHP:
1- The mail server does not support extended mode email address in PHP. You should try changing this line in the script (Forms To Go 2.5.9):
$emailTo= '"Name"<
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
>'; (extended)
to:
$emailTo= '<
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
>'; (simple)
In Forms To Go 2.6 you can change it by menu without having to modify the line before.
2- PHP relies on the sendmail program to send the email. If sendmail is not running or it's not setup properly, the email won't be sent.
If you're running Mac OS X, sendmail is turned off by default. You must follow these instructions explained by Apple in this URL:
http://docs.info.apple.com/article.html?artnum=107578
Also, we've found that in some Mac OS X computers, sendmail continues to be tricky. You might want to check other technical stuff like:
http://www.macdevcenter.com/pub/a/mac/2002/06/07/sendmail_1015.html
and
http://www.macdevcenter.com/lpt/a/2692
ASP:
1- If you are creating a script in ASP, you have to configure the SMTP settings, with your username, password and smtp server.
|