FROM = 'sender@example.com'
TO = ['user@example.com']
SUBJECT = 'Hello!'
TEXT = "This message was sent with Python's smtplib."
message = """From: %s
To: %s
Subject: %s
%s
""" % (FROM, ', '.join(TO),
    SUBJECT, TEXT)
server = smtplib.SMTP(SERVER)
server.sendmail(FROM, TO, message)
server.quit()
send anonymous mail from local pc