<commit_before>simpleMail
==========

I built simplemail because I was tired of having to specify so many options to
smtplib and email just to send myself a simple message!

Dependencies
============

NONE!  This should work out-of-the-box on a vanilla Python install.  It was tested
on Python 2.7.6 on a Mac OS X machine.

Usage
=====

**WARNING** There is a maxsize parameter which defaults to 100000 characters.  If your message is getting something that looks
like <Rest of message truncated because of size>, this is why.  Remove at your own risk though... sometimes messages larger
than this are marked spam, or rejected outright by the SMTP server(s).

.. code:: python

    # plain text
    send_email(message='testMsg','This is a test... this is only a test.')
    
    # HTML
    send_html_message(message="<h1>Hello HTML world!</h1>")

    # with attachment
    send_html_message(message="<h1>Check out this awesome Lynx!</h1>", attachments=['./lynx.jpg'])

You should look at simpleMail.py in the source, and set your options at the top there
accordingly.

If you are using Google, you will need to use a generated password, and your gmail
address as your username.  Here's a link to the place in Google to generate app
passwords:

https://security.google.com/settings/security/apppasswords

In the future, I may support a 'config.py', or other configruation options.  For now, <commit_msg>Modified readme to reflect proper usage<commit_after>simpleMail
==========

I built simplemail because I was tired of having to specify so many options to
smtplib and email just to send myself a simple message!

Dependencies
============

NONE!  This should work out-of-the-box on a vanilla Python install.  It was tested
on Python 2.7.6 on a Mac OS X machine.

Usage
=====

**WARNING** There is a maxsize parameter which defaults to 100000 characters.  If your message is getting something that looks
like <Rest of message truncated because of size>, this is why.  Remove at your own risk though... sometimes messages larger
than this are marked spam, or rejected outright by the SMTP server(s).

.. code:: python

    # plain text
    send_message(message='This is a test... this is only a test.')
    
    # HTML
    send_html_message(message="<h1>Hello HTML world!</h1>")

    # with attachment
    send_html_message(message="<h1>Check out this awesome Lynx!</h1>", attachments=['./lynx.jpg'])

You should look at simpleMail.py in the source, and set your options at the top there
accordingly.

If you are using Google, you will need to use a generated password, and your gmail
address as your username.  Here's a link to the place in Google to generate app
passwords:

https://security.google.com/settings/security/apppasswords

In the future, I may support a 'config.py', or other configruation options.  For now, 
{'fraction_non_alphanumeric': 0.08965272856130405, 'fraction_numerical': 0.009213323883770375, 'mean_word_length': 3.987632508833922, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1136633', 'n_tokens_mistral': 803, 'n_tokens_neox': 764, 'n_words': 385}