- Issue created by @pfrenssen
- Status changed to Postponed
over 1 year ago 10:31am 8 March 2023 - 🇧🇬Bulgaria pfrenssen Sofia
Postponed on ✨ MailgunHandlerInterface::sendMail() should throw exceptions on error Active .
- last update
9 months ago 5 pass
When sending mails to a sandbox test domain through MailgunMail::queueMessage()
the mail will be rejected by the sandbox domain unless the recipient is in the allowed list, with the following error:
Domain sandbox.mailgun.org is not allowed to send: Sandbox subdomains are for test purposes only. Please add your own domain or add the address to authorized recipients in Account Settings.
The mail is currently not removed from the queue so it will be resent again and again on the next cron run. This results in an endless stream of errors.
Result: the mail is rejected by the sandbox and is sent again and again on every cron run.
Expected result: the mail is rejected by the sandbox and is not sent again.
When the Mailgun API indicates in their error message that the mail is rejected due to being sent through a sandbox domain, the message should be removed from the queue.
First we need to fix ✨ MailgunHandlerInterface::sendMail() should throw exceptions on error Active before this can be implemented.
Postponed
1.0
Code
Postponed on ✨ MailgunHandlerInterface::sendMail() should throw exceptions on error Active .