SMTP server for development.
Just PIP:
$ pip install smtp-faker
$ smtp-faker --http=localhost:8080 --smtp=0.0.0.0:8025
Or Docker:
$ docker run --rm -it -p 8080:80 -p 8025:25 --name smtp-faker zzzsochi/smtp-faker
$ python3 -m smtp_faker.test N
$ python3 -m smtp_faker.test HOST:PORT N
$ python3 -m smtp_faker.test localhost:8025 10
$ docker exec -it smtp-faker python3 -m smtp_faker.test 10
- GET /messages
- GET /messages/:id
- GET /messages/:id/plain
- GET /messages/:id/html
- GET /messages/:id/raw
- /ws
id: | str |
||||||
---|---|---|---|---|---|---|---|
ts: | ISO-date timestamp |
||||||
size: | int, size in bytes |
||||||
headers: | message headers
...and other headers. |