Skip to main content

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.
debug=True, # Enables debug output.

Project details


Download files

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

Source Distribution

send_email_message-0.1.5.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file send_email_message-0.1.5.tar.gz.

File metadata

File hashes

Hashes for send_email_message-0.1.5.tar.gz
Algorithm Hash digest
SHA256 f4e5890f2a1fcaf53584852528bc38c456bcd370e7077110ec2cf9ea095776b8
MD5 0410a62d22e12f209fcb42ceddc7505e
BLAKE2b-256 bd80185c0c8504408bc407260dcca75c286dd56b07913057abe469f936bc8516

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page