Bug #14900 Updated: Mail Function not working

From: Date: Wed, 15 May 2002 10:20:10 +0000
Subject: Bug #14900 Updated: Mail Function not working
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-7732@lists.php.net to get a copy of this message
ID: 14900 Updated by: mfischer@php.net Reported By: david-cochrane@ley-lines.com -Status: Open +Status: Feedback Bug Type: Mail related Operating System: Windows XP PHP Version: 4.1.1 New Comment: Please try latest snapshot from snaps.php.net/win32 , it now returns the server error message which should help us identifying the problem here. Previous Comments: ------------------------------------------------------------------------ [2002-01-07 09:14:04] sander@php.net This might be a problem with your mailserver which appears to be not standards-compliant. ------------------------------------------------------------------------ [2002-01-07 03:06:58] david-cochrane@ley-lines.com Get the following error message: Warning: Server Error in c:\inetpub\wwwroot\David\send_simpleform.php on line 15 Referred to code: 1 <?php 2 3 $msg = "E-MAIL SENT FROM WWW SITE\n"; 4 $msg .= "Sender's Name:\t$sender_name\n"; 5 $msg .= "Sender's E-Mail:\t$sender_email\n"; 6 $msg .= "Message:\t$message\n\n"; 7 8 $to = "david-cochrane@ll.com"; 9 10 $subject = "Web Site Feedback"; 11 12 $mailheaders = "From: My Web Site <> \n"; 13 $mailheaders .= "Reply-To: $sender_email\n\n"; 14 15 mail($to, $subject, $msg, $mailheaders); ?> my php.ini mail settings are as follows: [mail function] SMTP = localhost ;for win32 only sendmail_from = david-cochrane@ll.com ;for win32 only ;sendmail_path = ;for unix only, may supply arguments as well (default is 'sendmail -t -i'). I found a possible solution on ticket number 6742 but didn't understand the cure (the simpler the description the better). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=14900&edit=1

« previous php.bugs (#7732) next »