This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from smtplib import SMTP # Use this for standard SMTP protocol (port 25, no encryption) | |
# from smtplib import SMTP_SSL as SMTP # This invokes the secure SMTP protocol (port 465, uses SSL) | |
from email.mime.text import MIMEText | |
class Email(object): | |
SMTP_CONFIG = dict( | |
server="your_smtp_server_hostname", | |
username="your_smtp_server_username", | |
password="your_smtp_server_password" |