note 41101 added to function.mail
| From: | sdaskin at yahoo dot com | Date: | Tue, 30 Mar 2004 08:35:19 +0000 |
| Subject: | note 41101 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-67363@lists.php.net to get a copy of this message | ||
<?php
/* recipients */
$to = "nobody@example.com" ;
/* subject */
$subject = "Test mail";
/* message */
$message = '
<html>
<head>
<title>This is easy test</title>
</head>
<body>
<p>WHY!why!WHY!</p>
</body>
</html>
';
$sender = "mymail@anylongdomain.com"; // if i send with my long domain sender email
nothing goes ? there is a long domain error
//$sender = "mymail@sort.com"; if i use sort domain in serder it goes !
/* To send HTML mail, you can set the Content-type header. */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
/* additional headers */
$headers .= "To: nobody <nobody@example.com>\r\n";
$headers .= "From: webmaster <".$sender.">\r\n";
/* and now mail it */
mail($to, $subject, $message, $headers);
?>
can any body tell me what is the problem with long domain ?
i get this error in php 4.3.3 and php 4.3.4
is it a bug not not
----
Manual Page -- http://www.php.net/manual/en/function.mail.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41101
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41101&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41101&report=yes
Search -- http://master.php.net/manage/user-notes.php