I'm setting up my Laravel website, and now comes the part where I configure Mailgun to send and receive emails. I followed different guides to do that, yet I don't feel I'm doing it right. I'm now stuck with this error: Failed: [email protected] → [email protected] 'New Order from Ibrahim Hasan' Not delivering to previously bounced address i.e. Mailgun is not able to deliver my emails. Could you please guide me through this? Thank you!
If mail was sent and rejected by the provider (bad content, headers, etc), Mailgun will automatically blacklist that address from being sent to in the future.
This is to prevent blacklisting
yourself from many of the different MX providers out there.
If you think you've solved that problem, you can perform a DELETE
request through the Mailgun API in the format of DELETE /<domain>/bounces/<address>
before sending the mail, and then you'll be able to send to that address again.
You can check if a bounce has happened previously by performing a POST
request to POST /<domain>/bounces
. Furthermore, you will receive a JSON object back with a REASON as to why the bounce occurred, giving you the ability to respond in kind to this.
If a domain is not working correctly and it's not in the blacklist, then it's possible that the MX Provider its self is not accepting the emails and is responding unfavorably in a way that Mailgun cannot handle.
You can also delete the mail directly from the Mailgun UI if you have the login credentials. Please see the comment below and give it an upvote.
DELETE
request as indicated in my post where <domain>
is the domain you're sending from, and <address>
is the address you want to remove such as [email protected]
–
Cosmography checkmark
beneathe to accept it as answer. Which will also give you reputation points. –
Cosmography © 2022 - 2024 — McMap. All rights reserved.