Sending email by SMTP with Python

1
2
# Import smtplib for the actual sending function
import smtplib
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Quite simple snippet to send email using a SMTP server in Python
It's recommendable that you use the standard packages email and smtplib together.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.