I use this script:

<?

/**
in php.ini - localhost

[mail function]

SMTP = mail.serbis.com; only win32
sendmail_from = [EMAIL PROTECTED];
*/

$msg = "this is a test";
$senderFrom = "[EMAIL PROTECTED]";
$receiverTo = "[EMAIL PROTECTED]";
$subject = "test of the mail function";
$mailHeaders = "From: $senderFrom\n";
$mailHeaders .= "Reply-to: $senderFrom\n";
$mailHeaders .= "Message-Id: 16295644\n";
mail($receiverTo, $subject, $msg, $mailHeaders);
?>

I got this error:

Warning: mail(): SMTP server response: 550 not local host ojpp.myftp.org,
not a gateway in D:\htdocs\ojpp\functions\mail\2.php on line 19

thanks, for any help.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to