Skip to main content

SMTP Faker -- smtp server for development

Project description

==========
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:8025

Or 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smtp_faker-0.1.2.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

smtp_faker-0.1.2-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file smtp_faker-0.1.2.tar.gz.

File metadata

  • Download URL: smtp_faker-0.1.2.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for smtp_faker-0.1.2.tar.gz
Algorithm Hash digest
SHA256 87673d639fcd21e65cd2d60d7b4f86b627c45e097943570d411329d53a4f8720
MD5 d12c5ccdc5daa271366fbc3013ceff3a
BLAKE2b-256 90be591bda57cab1f650476ff4e6b13c7432750d74ee5110b3aefa8f488f6861

See more details on using hashes here.

File details

Details for the file smtp_faker-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for smtp_faker-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dc9e5320e4fa6217c1cde3a846198242beeca98ac35c8c6e7b56f5b9f73e1930
MD5 4f540cd3b2634e97e13b3a49181f59f5
BLAKE2b-256 ccd45628ef95a2eda846de0fb7e404040dcaac078520b49eac919f667ac64652

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page