Re: Bug #14329: Mail() does not work
| From: | Daniel Lorch | Date: | Mon, 03 Dec 2001 20:37:09 +0000 |
| Subject: | Re: Bug #14329: Mail() does not work | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-72372@lists.php.net to get a copy of this message | ||
Hi,
First point: I couldn't figure out how to use your bug-system. Call me
stupid, but I just dont get how it works (i.e. I don't have a CVS
account and I thought that wouldn't be necessary for only this. Yes,
I'm tired :)).
Here my answer:
This error is raised when PHP fails to connect to the SMTP server.
Please check your php.ini for following directive:
[mail function]
SMTP = smtp.blabla.com ;for win32 only
check manually whether this server works. Have you installed a
firewall which prevents connecting to this server? Or is this
directive just missing/invalid?
For additional debbuging help please check out http://www.ethereal.com/
It will provide you with more in-depth information of the connection
process.
remember to restart apache after having changed php.ini. This is NOT a
bug in PHP.
Kind regards,
Daniel Lorch
--- snip ----------------------------------------
From: dr_jubi@hotmail.com
Operating system: WindowsCE
PHP version: 4.1.0
PHP Bug Type: *Mail Related
Bug description: Mail() does not work
ok when i run the mail script i get :
Warning: Failed to Connect in C:\Inetpub\docs\flatlinks\action.php on line
48
it says the error is in the Mail() line which is :
mail($to, $subject, $message, $headers);
i would realy apriechate any help,
here the script:
$to = "$name1 <$mail1>";
$subject = "Hey, its $from";
$message = '
<html>
<head>
<title>Hello</title>
</head><body><left>
<?php echo $name1; ?>
<p>
Hi
</p>
</left></body></html>
';
/* set the Content-type header to send html mail */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
mail($to, $subject, $message, $headers);
--
Edit bug report at: http://bugs.php.net/?id=14329&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
For additional commands, e-mail: php-dev-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net