Return True or False after sending email #34048
Unanswered
grim-reapper
asked this question in
General
Replies: 1 comment 2 replies
-
For one, there's
But to the best of my knowledge, it depends on the actual transport to properly support this. AFAIK with SMTP it won't work as emails are usually enqueued and bounce back so you don't get back a synchronous feedback. But I know that other transport like postmarkapp using their API, they report many errors synchronously back before spooling them internally. YMMV |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm requesting new features which is very important that is missing from laravel. The feature is related to laravel Mail::send() function. Laravel Mail::send() function does not return anything but null on sending email. So why i am requesting this features because in most we have to store email logs where we can set either email is sent or not base in Mail::send() function whereas Mail function doesent return anything so it's not possible to determine either email is sent or not. I have used PHPMailer library which is good mail library. PHPMailer library send() method return true or false on sending email which is very helpful. So could you please add this little feature? It would be very helpful for those who want to perform some action base on mail true false.
I'm hoping my request will be considered.
Beta Was this translation helpful? Give feedback.
All reactions