Skip to main content

Pyworks Mailer

PyWork Mailer provide fast way to use SMTP mail and the most email templates.

Features

  • Setup SMTP mail easily.
  • Most popular mail templates for Register, Forgot password, Daily, Weekly news, Payment, Place Order..etc.
  • Compress mail before send.

... and more

TODO

  • Auto load configuration form .env file.
  • Auto load all templates file.
  • Minify mail template HTML.
  • Support Gmail mail.
  • Support Amazon SES mail.
  • Support Yandex mail.

Requies

  • Python 3.7+
  • Virtualenv
  • Pytest

Development

Create virtual environment

virtualenv -p python3.7 venv
source venv/bin/activate

Install Python dependencies:

pip install pytest
pip install wheel

Test package locally

To run tests for project run this command:

# Use Makefile
make test

# Use pytest package in virtualenv
python -m pytest

# or
# pytest --pyargs <your_package_name>
pytest --pyargs mailer

Results

====================== test session starts ==============================
platform linux -- Python 3.7.9, pytest-6.2.2, py-1.10.0, pluggy-0.13.1
rootdir: *********/pyworks-mailer, configfile: pytest.ini
collected 2 items          

tests/test_config.py .                                              [ 50%]
tests/test_send_mail.py .                                           [100%]

======================= 2 passed in 3.18s ================================

Packaging project

Create Source Distributions

Create a source distribution for publish to PyPI:

python setup.py sdist

Create Wheels

Create a wheel for project.

python3 -m pip install wheel

Metadata

Release files for pyworks-mailer 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyworks-mailer 1.0.0
File Size Uploaded Provenance Actions
pyworks-mailer-1.0.0.tar.gz 3.5 kB Without provenance Details for pyworks-mailer-1.0.0.tar.gz

Release files / pyworks-mailer-1.0.0.tar.gz

Download URL pyworks-mailer-1.0.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1317722f8d49e5ebd4547566650e5dbbda4aa15b296f3d17f3fc29003e43eb30
BLAKE2b-256 checksum
How to use checksums
cfcc4d09760e0e9419257fa484301631ea249b5629610bcf5739734c52b84de1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.9

Security for pyworks-mailer 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page