Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Temporary e-mail accounts for integration tests [closed]

I would like to write some integration tests which verify if user receive registration confirmation e-mails.

Ideally, for this purpose I would like:

  1. Create temporary e-mail account.
  2. Pass it in registration form.
  3. Check if we receive e-mail.
  4. Delete e-mail account.

Are there any disposable e-mail accounts which provides a simple API? I couldn't find any, but existing ones are fairly easy to parse/make requests (e.g. http://10minutemail.com/).

Is this sounds like a good idea? The alternative is use some gmail account and use tags for this purpose. However, dealing with msgs in spam folder, other folders, etc. sounds a bit more complicated.

like image 799
Jakozaur Avatar asked Oct 05 '12 17:10

Jakozaur


People also ask

Is there a dummy email address?

Disposable email - is a free email service that allows to receive email at a temporary address that self-destructed after a certain time elapses. It is also known by names like : tempmail, 10minutemail, 10minmail, throwaway email, fake-mail , fake email generator, burner mail or trash-mail.

How do I create a test email?

You should be using a Gmail account that you are not using. You just need to add a "+" to the preferred username and follow that with some random characters. For example, if your email address is [email protected], you will be able to create the new email as [email protected].

Is Mailinator still free?

Mailinator still offers a 100% free, public disposable email system. You can use any address @mailinator.com and check those public inboxes by entering the public inbox in the field below.


2 Answers

you can test with your email from Gmail, just append +something to your email address:

[email protected]

you can have a test account that will deliver to your normal Gmail address:

[email protected]

[email protected]

like image 126
manuelBetancurt Avatar answered Sep 22 '22 07:09

manuelBetancurt


http://mailinator.com supports POP3.

Connect to the server via POP3 with any username and check e-mail.

like image 25
user1292828 Avatar answered Sep 21 '22 07:09

user1292828