How is it possible, using MailHost.send()
, to send an email from me@example.com
and if there is a bounce error it will not be sent to me@example.com
but to error@example.com
?
I have tried with headers like Return-Path
but no success.
How is it possible, using MailHost.send()
, to send an email from me@example.com
and if there is a bounce error it will not be sent to me@example.com
but to error@example.com
?
I have tried with headers like Return-Path
but no success.
I think instead you can verify if the email address exists & is valid in the first place & route the mail accordingly, I found these options which provide an API for verifying valid Email addresses
1 - Mashape
2 - Free Email Verifier
3 - Swift Email Verifer
4 - Mailgun
Hope one of those links help you out
There are 2 headers you can use:
Sender - Address of the actual sender acting on behalf of the author listed in the From: field
Error-To - Indicates where error messages should be sent. In the absence of this line, they go to the Sender