|
Email is not being received after the success page is shown |
|
Issue:
The email with the form fields values is not being received when the user submits the form and the success page is shown.
How to solve:
There are many reasons that can prevent the email server to send the email.
The most common reasons are:
From address: the from address is empty. Depending on how strict is the configuration of the email server, some email servers does not permit any email different from his domain to prevent spamming. For example:
Your Hosting Domain: mydomain.com Email Sent 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 does not match with the domain of the server. You can workaround it with selecting "Generic" in the from address, where it should be for example:
Your Hosting Domain: mydomain.com Email Sent From:
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
Form method: 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 have to be POST-POST or GET-GET.
Register Globals in PHP: if you're using PHP as the scripting language you must also check that the Register Globals setting is the same in your script and server. Also, be aware that version 3.x of PHP and older, doesn't fully support register globals, so you must set Register Globals to on if you use PHP 3.x or previous versions
Perl: the perl script uses sendmail, which is a standard an very used in Unix boxes. However, many security issues and antispam 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 antispam measure, which set the "from" address on the email to your real e-mail address and the email won't go thru if you do not set this flag like this:
/usr/sbin/sendmail -t -i
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 of modifiers that must be used.
PHP: one reason could be that the mail server does not support extended mode email address:
"Name"<
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
>,
so you have to change it to simple mode:
<
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
>
You can change it in "Email to Form's Owner"" by clicking simple mode.
ASP: make sure you need to configure the SMTP settings with the SMTP sever, your username and password. If you do, make sure they are typed correctly.
|