Snippet: Python Send Email SMTP Example Language: PYTHON Author: sujeetkumar713 Created: 2026-02-14 22:31:04 Views: 907 Downloads: 166 Description: Python SMTP email sending example for automation scripts. ============================================================ import smtplib server = smtplib.SMTP('smtp.gmail.com',587) server.starttls() server.login('email@gmail.com','password') server.sendmail( 'email@gmail.com', 'target@gmail.com', 'Hello from Python' ) server.quit() ============================================================ Downloaded from SaveMyCode - https://savemycode.com