Very simple and unicode friendly way to send email message from Python code.
Project description
Usage:
sudo pip install send_email_message from send_email_message import send_email_message email_config = dict( host='smtp.gmail.com', port=587, tls=True, // Or ssl=True with another port. user='admin@example.com', password='password', from_name='Example Site', # Default: encoding='utf-8' ) send_email_message( to='denisr@denisr.com', subject='Example News', text='Please see http://example.com/', html='<html><body>Please see <a href="http://example.com/">example.com</a></body></html>', **email_config )
Rare usage:
login_plain=True, # Some servers are OK with TLS, but require "LOGIN PLAIN" auth inside encrypted session.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.