Created
December 12, 2016 03:39
-
-
Save sidja/e23b4307fe3e18ef471ed4ef75ddf0da to your computer and use it in GitHub Desktop.
Simple send email script in python
This file contains 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
import smtplib | |
server = smtplib.SMTP('mail.aws.something.local', '25') | |
#Next, log in to the server | |
server.login("befit-smtp-dev@aws.local", "DNUkWP3yrg3zEP4STLESGzDuejeW9wtZ") | |
msg = "Hello again !" # The /n separates the message from the headers | |
server.sendmail("sid@from_email.com", "siddarth.vijapurapu@to_eamil.com", msg) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment