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.

Source Distribution

emailx-0.1.1504223903.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

emailx-0.1.1504223903-py2.py3-none-any.whl (6.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file emailx-0.1.1504223903.tar.gz.

File metadata

File hashes

Hashes for emailx-0.1.1504223903.tar.gz
Algorithm Hash digest
SHA256 cacc93766a9f07f2107f5c31d0fc41b230a9c50884148225f7afcfb19a3787cd
MD5 ab2d576b77e5d254b073309850de383b
BLAKE2b-256 18a2fe431d1acc06f8c4e2fbf393d13b0d886a37846d5c8841d7493c7556501a

See more details on using hashes here.

File details

Details for the file emailx-0.1.1504223903-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for emailx-0.1.1504223903-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1f9195267f742beca43063d5ff7c92aca19545aadb719f8d6d5568fd442e1776
MD5 60852810057d0fd8fd719bda6ac1dd98
BLAKE2b-256 ea16d77645c324eb3661d0f99edd0ac5c2bd55267c862d1bf9dc80fe863847fc

See more details on using hashes here.

Supported by

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