Jaymon / testdata

Python module to make testing easier, it can generate random data like names and text, run commands, fetch urls, create files and directories, and more
MIT License
10 stars 0 forks source link

Testing emails #63

Closed Jaymon closed 3 years ago

Jaymon commented 4 years ago

I'm wondering if it would be possible to bring up a server on port 25 that can read email, so you would need to setup a server on some domain, add a DNS record for the mailserver, then I could create a MailServer that would read port 25?

The biggest problem would be that you need to have a publicly available server so services like sendgrid could send to it, I imagine the flow would be you bring up the server to listen for emails, then it would have an api so you could query it to see the latest emails or something like that, or query it for an email from <EMAIL ADDRESS> and then you can loop it until that email comes.

There are services that do this:

maybe allow testdata to hook into these instead?

Sandbox mode and subusers on sendgrid can be handy for a testing setup.

Other things I had open: