Created
December 16, 2013 12:46
-
-
Save Abukamel/7986433 to your computer and use it in GitHub Desktop.
simple function for sending email via python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import smtplib | |
def send_email(sender, receivers, message): | |
sender = sender | |
receivers = receivers | |
message = message | |
smtplib.SMTP('localhost').sendmail(sender, receivers, message) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment