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.1510835164.tar.gz
(5.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file emailx-0.1.1510835164.tar.gz.
File metadata
- Download URL: emailx-0.1.1510835164.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de9a3066991581406827047a24998f0f3c6709d7f693a10f187396b7021ddae0
|
|
| MD5 |
49ae6f4983806b084856fc00969f12fa
|
|
| BLAKE2b-256 |
b88261dfcb659f89377e579d346082472e2e057e975ef29c06e02c404136eab3
|
File details
Details for the file emailx-0.1.1510835164-py2.py3-none-any.whl.
File metadata
- Download URL: emailx-0.1.1510835164-py2.py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62718ccc08b9c8c60bbad433086cdccc04df71df3bfc40ea87db946fed0e80d2
|
|
| MD5 |
3e83b061d48a499653edfaab7738f641
|
|
| BLAKE2b-256 |
55a50219cd2459acdc7b06f0c473b0b273c3ac39e17e4679a03672efc0fb50b9
|