Skip to main content

SMTP emailer to send HTML formated emails

Project description

HTML Mailer

This library simplifies sending HTML formated emails. Currently there is one HTML format. Planning for future releases to customize format.

To use, simply pip install.

Example:

import os
from py_html_email import Emailer

emailer = Emailer(sender_email='example@microsoft.com',
                  sender_password=os.getenv('email_password'),
                  smtp_server='office',
                  )
emailer.send_email(to='to@address.com',
                   subject='Email Sent with HTML Mailer',
                   msg_header='Alert!!',
                   msg_title='There was an issue',
                   msg_body='Details on the issue are related to process x',
                   attachment_path="path/to/file"
                   )

Planned improvements:

  1. Parse html_generic programmatically to remove kwargs that do not get satisfied.
  2. Create ability for user create custom formatted HTML
  3. Ability to add more than 1 attachment

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

py_html_email-0.0.2.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_html_email-0.0.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file py_html_email-0.0.2.tar.gz.

File metadata

  • Download URL: py_html_email-0.0.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for py_html_email-0.0.2.tar.gz
Algorithm Hash digest
SHA256 49e9127370257a3cb5509b1f0c78c44a7eaaf63ed00a0eaf8b818d698ad7b865
MD5 7f627d831e946792779bf6487bbe017d
BLAKE2b-256 12446221fdbf008483495ae128667d9df22f7b6ce5ce8c71dd56f48132aecc0b

See more details on using hashes here.

File details

Details for the file py_html_email-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: py_html_email-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for py_html_email-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e535986ef13de3046f42290b9ae9c53dd097645feb58f108764d06a79d87e408
MD5 3a8eb884980428c8f2f1f43795d008b0
BLAKE2b-256 dee882b921d008fdeaf067381631caf3dc67124d19f68712f05c0f5f65e835b5

See more details on using hashes here.

Supported by

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