Metadata-Version: 2.1
Name: simpleemail
Version: 0.2.1
Summary: Simple SMTP wrapper for Python's SMTP, supports both HTML and text based emails. Now supports attachments!
Home-page: https://github.com/N-C-C/SimpleEmail
Author: John Glasgow
Author-email: jglasgow@northampton.edu
License: MIT
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Topic :: Communications :: Email
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: CPython

SimpleEmail
===========
Simple SMTP wrapper for Python with basic HTML and text support based on MIME types.
------------------------------------------------------------------------------------
Quickstart
----------

Install simpleemail

 ``pip install simpleemail``

Then use it in a project:

 ``from simpleemail import create_email_message, send_email``

To send an email you have to first create an email message to send.
*Note you can use any combination of plain text or HTML when creating a message.*

 ``message = create_email_message('Hello','email@address.com','foo@bar.it','World!','<html><head></head><body><h1>World!</h1></body></html>')``
 ``send_email(message,'smtp.server.com', False)``

You can also provide parameters to be replaced when the message is created.::

    params = {'name': 'Rick James'}
    message = create_email_message('Hello',
                                    'email@address.com',
                                    'anyone@foobar.com',
                                    '[name]!',
                                    '<html><head></head><body><h1>[name]!</h1></body></html>',
                                    params)

This will substitute the value of Rick James in for the name.


