Skip to main content

easy as hell email sending for python

Project description

# emailx: easy as hell email sending for python

Install like this:

pip install emailx

Use like this:

from emailx import Email, smtp_connection

SMTP = 'smtp.example.com'

LOGIN = ('alex', 'password123')

dummy_recipients = 'Alex <alex+testing@example.com>'

with smtp_connection(SMTP, LOGIN) as c:
e = Email(
source='Alex <alex@example.com>',
subject='Hello',
body='Body',
html_body='<html>Body</html>',
to_addresses='Bobby <bobby@example.com',
bcc_addresses='Kim <kim@example.com>',
attachments={
'a.csv': csv_data
}
)
c.send(e)


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
emailx-0.1.1510835164-py2.py3-none-any.whl (7.4 kB) Copy SHA256 hash SHA256 Wheel py2.py3
emailx-0.1.1510835164.tar.gz (5.1 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