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.1504076508.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file emailx-0.1.1504076508.tar.gz
.
File metadata
- Download URL: emailx-0.1.1504076508.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b09db0ba2696ecd249b0f082235d4cc4d0f128e8c0019e69b641f0ff8e445618 |
|
MD5 | 585c7a609973b6166e91e3bd05dbb408 |
|
BLAKE2b-256 | e33261244e7646bbdc9c9c2caad442fe6ca781d378b23bfdf9d8be0214583f5d |
File details
Details for the file emailx-0.1.1504076508-py2.py3-none-any.whl
.
File metadata
- Download URL: emailx-0.1.1504076508-py2.py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d40dd516e5d2a86d1db33688afc246b03ec880c92a8334b719b07439e1c2fe16 |
|
MD5 | d49788976470c0cc3f2380927f594d68 |
|
BLAKE2b-256 | f5f91ea8a4e62ade671c404cfd80032d9c85e75bda7331682f2fa7a929ebb3f2 |