Cypress email testing with virtual smtp server (mailtrap)

534 views Asked by At

My goal is to use mailtrap as a virtual SMTP server and use Cypress to be able to (through mailtraps interface) visualize how the emails look and test their contents to catch any inconsistencies.

I found a package called "cypress-mailtrap", but it looks like an abandoned project with no instructions: https://github.com/xedi/cypress-mailtrap.

Has anyone set up anything like this before or have any tips on how to approach it?

1

There are 1 answers

1
Preeti Bellad On

I also tried installing cypress-mailtrap, but faced different issues. So I switched to an open-source option, mailhog and it worked successfully.