Metadata-Version: 2.1
Name: email-stuff
Version: 0.0.13
Summary: Email sending functionality package
Home-page: https://github.com/george-oconnor/email-stuff
Author: george.oconnor (George O' Connor)
Author-email: <george@georgestools.com>
Keywords: python,email,outlook,send email,email attachments,mail,gmail,smtp
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Description-Content-Type: text/markdown
License-File: LICENSE

# email-stuff

A package that allows to send emails via a number of different methods from within a python application. Adopted from ioe-email-stuff v0.0.13

## Installation

Run the following to install:

```python
python -m pip install email-stuff
```

## Usage

```python
from email_stuff import send_email

# Send an email - outlook only (for now).
# CC, BCC, attachment and server args not required.
# recipients, cc's and bcc's should be seperated by a semicolon, all in one string.
send_email("SUBJECT", "BODY", "USERNAME", "PASSWORD", "RECIPIENTS", cc="CCs", bcc="BCCs", files=["./ATTACHMENT1.png"], server="smtp.outlook.com")

# recommended way to handle errors is a try/except block:
try:
    send_email("SUBJECT", "BODY", "USERNAME", "PASSWORD", "RECIPIENTS")
except Exception as e:
    # do something with e
    print(e)
```
