Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import smtplib, getpass
- servidor_smtp = smtplib.SMTP('servidor.smtp.co')
- servidor_smtp.login(getpass.getuser(), getpass.getpass())
- remitente = 'dostoevsky@email.ru'
- destinatario = 'balzac@email.fr'
- mensaje = 'From dostoevsky@email.ru\r\nTo: balzac@email.fr\r\n\r\nLee mi nueva obra Crimen y castigo'
- # Envío del email:
- servidor_smtp.sendmail(remitente, destinatario, mensaje)
- # Cierre:
- servidor_smtp.quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement