An even easier way to send emails!
You can install this package using pip (if you have GIT installed):
> python -m pip install git+https://github.com/richardhob/mailSend an email!
>>> import mail
>>> dev = mail.Dev(user='', password='', host='', port=587)
>>> dev.open()
>>> dev.send('Hi there!', to='', subject='Test')
>>> dev.close()Or, send some attachments:
>>> import mail
>>> dev = mail.Dev(...)
>>> dev.open()
>>> dev.send('Hi Again', 'path/to/test.csv', 'path/to/another.zip', to='',
subject='Stuffs')
>>> dev.close()