Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

Ability to read emails via API #84

Open
yasin3061 opened this issue Jun 18, 2019 · 1 comment
Open

Ability to read emails via API #84

yasin3061 opened this issue Jun 18, 2019 · 1 comment

Comments

@yasin3061
Copy link

It would be nice to have a feature that allows the user to read the emails via some API.

This feature can be used in UI automation or end-to-end tests where the email's content can be verified.

@SpyroTEQ
Copy link

I used to think the same, but since this project does not evolve a lot (and I don't want to make a PR to add this feature, further more seeing 17 opened PR already!), I've actually fallen back to simply read the EML file that FakeSMTP saves.
In other words, you can simply browser files in the email-saved (or so) folder where FakeSMTP stores the EML. EML parsing is pretty standard (and even pretty straightforward actually). You can also delete files from there if needed, or get the email saving date from the file name.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants