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 -m pip install email-stuff
Usage
from email_stuff import send_email
send_email("SUBJECT", "BODY", "USERNAME", "PASSWORD", "RECIPIENTS", cc="CCs", bcc="BCCs", files=["./ATTACHMENT1.png"], server="smtp.outlook.com")
try:
send_email("SUBJECT", "BODY", "USERNAME", "PASSWORD", "RECIPIENTS")
except Exception as e:
print(e)