note 32671 rejected from ref.mail by betz
| From: | betz@php.net | Date: | Wed, 04 Jun 2003 08:00:45 +0000 |
| Subject: | note 32671 rejected from ref.mail by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-49691@lists.php.net to get a copy of this message | ||
Note Submitter: mail tester
----
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