Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zzzsochi/smtp-faker
Smtp server for development
https://github.com/zzzsochi/smtp-faker
development smtp smtp-server
Last synced: 3 months ago
JSON representation
Smtp server for development
- Host: GitHub
- URL: https://github.com/zzzsochi/smtp-faker
- Owner: zzzsochi
- Created: 2015-12-14T23:25:39.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-01T15:15:30.000Z (over 6 years ago)
- Last Synced: 2024-09-16T05:27:04.829Z (5 months ago)
- Topics: development, smtp, smtp-server
- Language: Python
- Size: 20.5 KB
- Stars: 9
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
==========
SMTP Faker
==========SMTP server for development.
------------
Installation
------------Just PIP:
.. code:: bash
$ pip install smtp-faker
$ smtp-faker --http=localhost:8080 --smtp=0.0.0.0:8025Or Docker:
.. code:: bash
$ docker run --rm -it -p 8080:80 -p 8025:25 --name smtp-faker zzzsochi/smtp-faker
------------------
Send test messages
------------------.. code:: bash
$ python3 -m smtp_faker.test N
$ python3 -m smtp_faker.test HOST:PORT N.. code:: bash
$ python3 -m smtp_faker.test localhost:8025 10
.. code:: bash
$ docker exec -it smtp-faker python3 -m smtp_faker.test 10
---
API
---URLs
----* `GET /messages`
* `GET /messages/:id`
* `GET /messages/:id/plain`
* `GET /messages/:id/html`
* `GET /messages/:id/raw`
* `/ws`
.. * `POST /messages/:id/forward`Message object
--------------:id: str
:ts: ISO-date timestamp
:size: int, size in bytes
:headers: message headers:From: sender address
:To: recievers
:Subject: message subject...and other headers.