Results 1 to 1 of 1

Thread: Does your web server send mail?

  1. #1
    Join Date
    Dec 2003


    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:
    1. Download testmail.php.
    2. Edit it and enter your own email address where the script tells you.
    3. Upload it to your web server (call it "testmail.php").
    4. Open the script with your web browser.
    If it tells you the mail function failed OR you don't receive the test message,
    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:

    PHP Code:
    and change it to:

    PHP Code:
    (You need FormMail version 4.09 or later to use the SENDMAIL_F_OPTION feature.)

    If you have version 7.11 or later then set SET_SENDER_FROM_EMAIL to "true" too. Look for:

    PHP Code:
    and change it to:

    PHP Code:
    Attached Files Attached Files
    Last edited by russellr; 22-Apr-2008 at 10:29 PM. Reason: Added link to document.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. FornNail Instead to send mail, open formmail.php in browser
    By Alvise in forum FormMail Subscription Support
    Replies: 2
    Last Post: 23-Aug-2005, 08:52 AM
  2. How to Email a Web Form's results as a TXT file attachment
    By Hagenow in forum FormMail Subscription Support
    Replies: 1
    Last Post: 11-May-2005, 10:16 AM
  3. New Server
    By sectioni in forum FormMail Subscription Support
    Replies: 9
    Last Post: 21-Mar-2005, 03:07 AM
  4. Creating mail object using Mail::factory ("smtp", ....) and FormMail
    By stingray in forum FormMail Subscription Support
    Replies: 1
    Last Post: 13-Jul-2004, 10:27 PM
  5. Problem with new server sending mail
    By mstookey in forum FormMail Subscription Support
    Replies: 7
    Last Post: 25-Jun-2004, 02:27 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts