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.

Edit
Report