On 03/03/2004 06:03 PM, Carlos Castillo wrote:
When i try to send a mail i receive the followin error
Warning: mail() [function.mail]: SMTP server response: 503 Comando o secuencia de comandos inesperados in E:\wwwroot\helpdesk_imagine\classes\helpdesk.class.php on line 1054
But the mail is sent, it occurs sometimes not always.
This is probably a bug of the mail() function under Windows.
You may want to try this class that comes with a wrapper function named smtp_mail(). It emulates the mail() using a direct SMTP connection to the SMTP server that you choose. You can enabled debugging in the smtp_mail.php wrapper script so you can see what is the problem in case any error occurs. If no error occurs, the problem is in the mail() function are you are safe by using this replacement function.
http://www.phpclasses.org/mimemessage
You also need this for the actual SMTP delivery.
http://www.phpclasses.org/smtpclass
--
Regards, Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php