smtp4dev icon indicating copy to clipboard operation
smtp4dev copied to clipboard

[Feature] Error simulation to reject messages

Open Davilink opened this issue 6 years ago • 2 comments

The idea is having a way to simulate a email that cannot be sent. We have functionality that display an error message to user if the email was unable to be sent but because we use the smtp4dev has a fake SMTP server, all email will be considered successfully sent and we cannot trigger our feature other than stopping the smtp manually when the Quality Assurance are testing this particular feature.

It would be nice to have a way to put a email address that will trigger an unable to sent email maybe in the appsettings or by cmdline.

Davilink avatar Jul 31 '19 15:07 Davilink

Thanks for suggesting this. I think that this is a great idea and will consider it for the future once more basic functionality is out of the way.

rnwood avatar Feb 19 '20 18:02 rnwood

Any further work on this idea? This would be very helpful, and it seems like it wouldn't be too hard to implement. Maybe let the user enter and email addresses and designate the error response it should generate?

andre259 avatar Aug 10 '23 16:08 andre259

This has been implemented in PR #1377. See MessageValidationExpression in app settings.

rnwood avatar Apr 14 '24 13:04 rnwood