mail() another example - error

From: Date: Sat, 01 Nov 2003 21:38:27 +0000
Subject: mail() another example - error
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-168298@lists.php.net to get a copy of this message
I use this script: <? /** in php.ini - localhost [mail function] SMTP = mail.serbis.com; only win32 sendmail_from = ojpp@serbis.com; */ $msg = "this is a test"; $senderFrom = "ojpp@ojpp.myftp.org"; $receiverTo = "postmaster@ojpp.myftp.org"; $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.

« previous php.general (#168298) next »