|
|||
|
Hi, i will try to explain the best i can, but my english is not that good.
i have to check when i send a mail (i'm using Zend/Mail and Smtp Authentication) if the mail was correctly sent or not. If it wasn't sent, i have to send another mail to another email address to register that this first mail wasn't sent. The problem is that i don't find in Zend Mail a way to check if this first mail has been sent or not. Does someone knows how to check it? Thanks! ![]() ![]() |
|
|||
|
Hi,
It throws a Zend_Mail_Exception You might need to surround the send() with a try catch block. e.g. Code:
try {
$mail->send();
} catch (Exception $e) {
echo "Failed to Send Email.";
}
Last edited by lordspace : 03-03-2008 at 05:44 PM. Reason: Fix indentation |
![]() |
| Thread Tools | |
| Display Modes | |
|
|