Skip to content

Instantly share code, notes, and snippets.

@sidja
Created December 12, 2016 03:39
Show Gist options
  • Save sidja/e23b4307fe3e18ef471ed4ef75ddf0da to your computer and use it in GitHub Desktop.
Save sidja/e23b4307fe3e18ef471ed4ef75ddf0da to your computer and use it in GitHub Desktop.
Simple send email script in python
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