php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14900 Mail Function not working
Submitted: 2002-01-07 03:06 UTC Modified: 2002-06-16 01:00 UTC
Votes:16
Avg. Score:3.0 ± 1.5
Reproduced:8 of 9 (88.9%)
Same Version:2 (25.0%)
Same OS:4 (50.0%)
From: david-cochrane at ley-lines dot com Assigned:
Status: No Feedback Package: Mail related
PHP Version: 4.1.1 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: david-cochrane at ley-lines dot com
New email:
PHP Version: OS:

 

 [2002-01-07 03:06 UTC] david-cochrane at ley-lines dot 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).


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-07 09:14 UTC] sander@php.net
This might be a problem with your mailserver which appears to be not standards-compliant.
 [2002-05-15 06:20 UTC] mfischer@php.net
Please try latest snapshot from snaps.php.net/win32 , it now returns the server error message which should help us identifying the problem here.
 [2002-06-16 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 07:01:29 2024 UTC