|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-12-15 22:26 UTC] yohgaki@php.net
[2001-12-15 22:45 UTC] steve at stevegodwin dot com
[2002-06-02 19:54 UTC] mfischer@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 05:00:01 2025 UTC |
This is to confirm the bug reported in Bug ID #14032 PHP Apache Module Versions 4.0.4, 4.0.6 FreeBSD 4.1 Installed on a virtual server at Verio The script below runs fine on my WinNT/IIS development server running PHP 4.0.4 as a CGI module. On the FreeBSD virtual server, the same script always returns false, even though the mail message has been sent successfully. Could it be a problem with how sendmail running on FreeBSD is responding (or not responding) to the mail() function? =============================== <?php error_reporting(E_ALL); $mail_to = 'steve@stevegodwin.com'; $mail_subject = 'Test Email'; $mail_message = 'This is a test'; $mail_headers = "From:info@stevegodwin.com\nReply-To:info@stevegodwin.com\n"; $sent = TRUE; $sent = mail($mail_to,$mail_subject,$mail_message,$mail_headers); if ( $sent == TRUE ) print("Mail sent successfully"); else print("Mail was not sent"); ?>