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.

Files for emailx, version 0.1.1510835164
Filename, size File type Python version Upload date Hashes
Filename, size emailx-0.1.1510835164-py2.py3-none-any.whl (7.4 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size emailx-0.1.1510835164.tar.gz (5.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page