Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 497
user3803807 Avatar asked Dec 07 '25 08:12

user3803807


1 Answers

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

Alternatively, you can use papercut.

like image 96
Snake Eyes Avatar answered Dec 10 '25 09:12

Snake Eyes