How to find out if an email was sent?
Notice: This thread is very old.
- MartyIX
- Member | 217
The send method (https://api.nette.org/…age.php.html#332) does not return if the email was sent.
Is it safe to assume that a mail is always successfully sent? Or what is the preferred way of checking that information?
Thanks!
- voda
- Member | 561
Both Nette\Mail\SmtpMailer and Nette\Mail\SendmailMailer throw exceptions, so if no exception is thrown the mail should be sent. But there is no way to check if the mail was successfully delivered.