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)
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
Release history Release notifications | RSS feed
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)
Built Distribution
File details
Details for the file emailx-0.1.1504223903.tar.gz
.
File metadata
- Download URL: emailx-0.1.1504223903.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cacc93766a9f07f2107f5c31d0fc41b230a9c50884148225f7afcfb19a3787cd |
|
MD5 | ab2d576b77e5d254b073309850de383b |
|
BLAKE2b-256 | 18a2fe431d1acc06f8c4e2fbf393d13b0d886a37846d5c8841d7493c7556501a |
File details
Details for the file emailx-0.1.1504223903-py2.py3-none-any.whl
.
File metadata
- Download URL: emailx-0.1.1504223903-py2.py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f9195267f742beca43063d5ff7c92aca19545aadb719f8d6d5568fd442e1776 |
|
MD5 | 60852810057d0fd8fd719bda6ac1dd98 |
|
BLAKE2b-256 | ea16d77645c324eb3661d0f99edd0ac5c2bd55267c862d1bf9dc80fe863847fc |