Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import smtp
- def lambda_handler(event, context):
- import smtplib
- server = smtplib.SMTP('smtp.gmail.com', 587)
- server.starttls()
- server.login("styoudentapplication@gmail.com", "Styoudent12345")
- msg = "YOUR MESSAGE!"
- server.sendmail("styoudentapplication@gmail.com", "amirov.mikhail@gmail.com", msg)
- server.quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement