php mail() function is not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • prabirchoudhury
    New Member
    • May 2009
    • 162

    php mail() function is not working

    mail() function stopped working after server upgraded to php 4.4.4. not getting any error on server error-log file and the php page . any idea please.


    using mail function code

    Code:
    $to = "to@domain";
    $subject = "Test mail";
    $message = "Hello ! This is a simple email message frm fis server.";
    $message .= $contact;
    $from = "from@domain";
    $headers = "From: $from";
    mail($to,$subject,$message,$headers);
    many thanks
  • unauthorized
    New Member
    • May 2009
    • 81

    #2
    Try adding this to your script and test it:
    error_reporting (E_ALL);
    ini_set('displa y_errors', true);

    You should also ensure your php.ini configuration is pointing to your mailer server.

    Comment

    Working...