Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

send email with one line

Project description

send email with one line using ssl
you need a local_settings.py in the root of the virtualenv with this:

# MAIL_CONFIG_DICT is required by for senderror_simple which is a function of the module quickmail
# SMTP_SSL_HOST is a ssl enabled smtp host and SMTP_SSL_PORT is the port to use (usually 465)
# MAIL_USER and MAIL_PASS refer to the email account to use to send error messages. MAIL_RECIPIENTS is a list of emails (strings) to be notified of errors
MAIL_CONFIG_DICT = {
'SMTP_SSL_HOST': 'yourdomain.com',
'SMTP_SSL_PORT': 465,
'MAIL_USER': 'you@yourdomain.com',
'MAIL_PASS': 'yourpass',
'MAIL_RECIPIENTS': ['you@yourdomain.com', friend@anotherdomain.com']
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
quickmail-0.5.tar.gz (2.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page