A python application to send emails
Code based on this: http://naelshiab.com/tutorial-send-email-python/
Remember to allow "less secure apps" on Gmail
from EmailSender import *
emailsender = EmailSender('smtp.gmail.com', 587) # mail server, port
emailsender.login("[email protected]", "password") # login with from, password
emailsender.send("[email protected]", "body") # to address, message
emailsender.quit() # logout
from EmailSender import *
emailsender = EmailSender('smtp.gmail.com', 587) # mail server, port
emailsender.login("[email protected]", "password") # login with from, password
emailsender.send_with_attachment("[email protected]", "subject", "body", "file_path") # to, subject, body, path_file
emailsender.quit() # logout