user3803807
user3803807

Reputation: 315

Localhost email for e2e email test

I need to test that an email has been received and preferably have the ablity to access the mailbox by a rest api. Im looking for an open source solution that i can install which will give me a local email address then i will get the application to send the email to the address where i can validate that it was received. Any ideas on solutions that can be used for the full end to end testing of emails would be appreciated. I know there are some internet based solutions out there but being a test environment the preference would be for a local solution.

Thanks

Upvotes: 3

Views: 508

Answers (1)

Snake Eyes
Snake Eyes

Reputation: 16764

There is smtp4dev to emulate received email. It listens port 25 but you can setup another port number.

Alternatively, you can use papercut.

Upvotes: 2

Related Questions