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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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