note 32671 added to ref.mail
| From: | mail at rack1 dot php dot net | Date: | Wed, 04 Jun 2003 07:27:17 +0000 |
| Subject: | note 32671 added to ref.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-49688@lists.php.net to get a copy of this message | ||
hello
hit some issues using mail().
Am using php 4.0.6, i did configure the php.ini for the SMTP
below my code
===========
<?php
$to = "tester@email.com";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?\r\n";
if (mail($to, $subject, $body)){
echo("<p>Message sent!</p>");}
else{
echo("<p>Message delivery failed...</p>");}
?>
===============
There is error
Warning: Failed to obtain socket handle in C:\Inetpub\wwwroot\kes\Coposts\testemail.php on line 6
Message delivery failed...
Any advices ? Thanks
----
Manual Page -- http://www.php.net/manual/en/ref.mail.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32671
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32671&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32671&report=yes