Bug #14329 Updated: Mail() does not work
| From: | hholzgra@php.net | Date: | Mon, 03 Dec 2001 21:11:24 +0000 |
| Subject: | Bug #14329 Updated: Mail() does not work | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-72383@lists.php.net to get a copy of this message | ||
ID: 14329
Updated by: hholzgra
Reported By: dr_jubi@hotmail.com
Status: Bogus
Bug Type: *Mail Related
Operating System: WindowsCE
PHP Version: 4.1.0
New Comment:
1) this is a bug tracking tool, not a support forum
please ask support questions on the php-general
mailing list (http://www.php.net/support.php)
2) you have read the configuration instructions
on http://download.php.net/manual/en/ref.mail.php
?
3) your script would most likely fail even if
the mail server talked to you
$to = "$name1 <$mail1>";
is wrong, you have to quote the real name:
$to = "\"$name1\" <$mail1>";
Previous Comments:
------------------------------------------------------------------------
[2001-12-03 15:57:43] derick@php.net
Not a bug, seek for more support on the php-general@lists.php.net mailinglist.
Derick
------------------------------------------------------------------------
[2001-12-03 15:18:03] dr_jubi@hotmail.com
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 this bug report at http://bugs.php.net/?id=14329&edit=1