Throw errors on defined domains
Capturing all outgoing emails is great but sometimes I want to test invalid email addresses and handling the errors that would be thrown. Because Mailtrap accepts all email as valid, I can't test that without turning the site into production mode.
Maybe a pattern or something that lets me set something in the "to" address would flag that particular email to be thrown back to my code as an error and I'd have to handle it.
Example:
to: user@website.test ... works. Mailtrap captures the email
to: user@website.error ... throws an error on my code when attempting to send to anything with the word "error" in the email.
Thanks for your request. At this moment, we do not plan to implement functionality like this. We believe it may create inconsistency in using the application. We may consider getting back to this idea later on.