Welcome to the Tectite Forums! You can download and get support for our free PHP FormMail (form processor) and other free software.
Some people have reported problems with sending mail from PHP.
We now have a detailed document for solving email problems.
This appears to be particularly prevalent on Windows servers but also on some Linux and other Unix servers.
The attached scripts are small PHP programs you can install on your web server to test whether it can send email from PHP (and whether you actually receive the mail).
Here's what to do:If it tells you the mail function failed OR you don't receive the test message,
- Download testmail.php.
- Edit it and enter your own email address where the script tells you.
- Upload it to your web server (call it "testmail.php").
- Open the script with your web browser.
repeat the above steps with testmail2.php. If neither work, you can contact your hosting provider and ask them why these simple scripts don't work.
If testmail.php works, then a correct installation of FormMail will too.
If testmail.php doesn't work but testmail2.php does work, you'll need to set SENDMAIL_F_OPTION to "true" in formmail.php. In the configuration section look for:
and change it to:PHP Code:
define("SENDMAIL_F_OPTION",false);
(You need FormMail version 4.09 or later to use the SENDMAIL_F_OPTION feature.)PHP Code:
define("SENDMAIL_F_OPTION",true);
If you have version 7.11 or later then set SET_SENDER_FROM_EMAIL to "true" too. Look for:
and change it to:PHP Code:
define("SET_SENDER_FROM_EMAIL",false);
PHP Code:
define("SET_SENDER_FROM_EMAIL",true);
Last edited by russellr; 22-Apr-2008 at 09:29 PM. Reason: Added link to document.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks