user = ''
password = ''
recipients = ['user@mail.com', 'other@mail.com']
sender = 'you@mail.com'
message = 'Hello World'
session = smtplib.SMTP(server)
session.login(user, password)
session.sendmail(sender, recipients, message)
Receive and send emails in python