1

I am looking to implement an Email API for my UI automated tests written in Java with Selenium.

Are there any recommendations of an email client in order to do this?

From what i found in my research so far, there is mail7 - but their api documentation wasn’t working for some reason, nada api email, or mailslurp.

Thank you for any suggestion you may have

3
  • Do you mean that you want to test that your application has sent emails and that the email content is correct?
    – Moshe Katz
    Nov 17 at 0:02
  • Are you looking for a hosted service or something you can run on your own computer(s)?
    – Moshe Katz
    Nov 17 at 0:03
  • Hi @Moshe, I am looking for a hosted service, and yes I want to test / or check the email content that has the required data.
    – vladys2019
    Nov 17 at 14:38
1

I have never used it myself, but I know a number of other developers who are very happy with Mailtrap.

Mailtrap is specifically designed to do exactly what you want:

  • Accept emails from your application (via SMTP)
  • Provides an API for you to retrieve the email content

Mailtrap provides many other features, such as checking spam scores of your test emails, sharing test emails with other developers in your team, and more.

There are multiple plans available, including a free plan that allows up to 500 emails per month to a single inbox. Paid plans offer more message capacity, faster sending, sending email to multiple mailboxes, and additional features.

1
  • Thank you Moshe, I will check it out
    – vladys2019
    Nov 19 at 16:27
0

I always used Mailhog for that.
https://github.com/mailhog/MailHog

It has webpage interface and API.

For example, start it in a docker and pass the container name to your web app SMTP settings.

Though not sure why they have so many Github Issues today. Maybe got too popular. I hope they'll catch up.

2
  • Thank you Nakilon, I will check it out
    – vladys2019
    Nov 19 at 16:28
  • I use Mailhog too, and I highly recommend it, but the comments on the question say that a hosted service is desired.
    – Moshe Katz
    Nov 19 at 17:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.