Re: Mail()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

On 02/29/2004 06:14 PM, Martin nielsen-Lönn wrote:
Is it possible to fetch an error from mail()? I have tried to send a e-mail but it doesn't work..

If track errors is not enabled in php.ini, no. Anyway, you may not be able capture any delivery error as the actual delivery may be deferred or the local mailer may not return any errors when it fails.


Alternatively, you may want to try this class that comes with a wrapper function named smtp_mail(). It emulates the mail() function except that it lets you debug the SMTP connection to the server that you are sending the messages to. This way you can see any error messages that are returned by the SMTP server.

http://www.phpclasses.org/mimemessage

You also need this other class to do the actual 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



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux