Login   Register  
PHP Classes
elePHPant
Icontem

554 -Relay Access denied

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      SMTP E-mail sending class  >  All threads  >  554 -Relay Access denied  >  (Un) Subscribe thread alerts  
Subject:554 -Relay Access denied
Summary:554 -Relay Access denied
Messages:2
Author:Fabio da Cunha
Date:2009-08-18 20:18:06
Update:2009-08-18 20:41:42
 

  1. 554 -Relay Access denied   Reply  
Picture of Fabio da Cunha
Fabio da Cunha
2009-08-18 20:18:06
Hi
i´m trying using the class
but i´m getting the error
554 -Relay Access denied
from the server only when i try send TO gmail or hotmail account

$smtp = new smtp_class;
$smtp->host_name = "mail.inphonex.com";
$smtp->SendRawMessage( $mail_to, array( $mail_to ), $str_message );

this is my config for the class
work fine for other domains

  2. Re: 554 -Relay Access denied   Reply  
Picture of Manuel Lemos
Manuel Lemos
2009-08-18 20:41:42 - In reply to message 1 from Fabio da Cunha
Usually that means that you are not passing the correct user authentication credentials. You need to set the authentication credentials like in this article.

http://www.phpclasses.org/blog/package/9/post/1-Sending-emai ...

Also note that you need to use the SASL class library for authentication and it is recommended that you use the SMTP class in conjunction with the MIME message class to send Internet mail standards compliant messages.

http://www.phpclasses.org/sasl

http://www.phpclasses.org/mimemessage