I would like to write some integration tests which verify if user receive registration confirmation e-mails.
Ideally, for this purpose I would like:
- Create temporary e-mail account.
- Pass it in registration form.
- Check if we receive e-mail.
- 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.