On 06/30/2003 07:30 PM, Sparky Kopetzky wrote:
I'm getting this error while sending email with mail():
Warning: mail(): SMTP server response: 550 5.7.1 <[EMAIL PROTECTED]>... Relaying denied in (path to my program)
How do I turn relaying on??
I think that means you need to authenticate. The mail() function has no authentication support. You may want to try this class that comes with a subclass for sending messages via SMTP that supports authentication. It comes also with a wrapper function named smtp_mail() that emulates the mail() function so you can use it as replacement without changing your scripts too much:
http://www.phpclasses.org/mimemessage
You also need this for message delivery.
http://www.phpclasses.org/smtpclass
--
Regards, Manuel Lemos
Free ready to use OOP components written in PHP http://www.phpclasses.org/
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php