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:
- Parse html_generic programmatically to remove kwargs that do not get satisfied.
- Create ability for user create custom formatted HTML
- Ability to add more than 1 attachment
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for py_html_email-0.0.2-py3-none-any.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | e535986ef13de3046f42290b9ae9c53dd097645feb58f108764d06a79d87e408 |
|
| MD5 | 3a8eb884980428c8f2f1f43795d008b0 |
|
| BLAKE2b-256 | dee882b921d008fdeaf067381631caf3dc67124d19f68712f05c0f5f65e835b5 |