Email sending functionality package
Project description
email-stuff
A package that allows to send emails via a number of different methods from within a python application. Adopted from ioe-email-stuff v0.0.13
Installation
Run the following to install:
python -m pip install email-stuff
Usage
from email_stuff import send_email
# Send an email - outlook only (for now).
# CC, BCC, attachment and server args not required.
# recipients, cc's and bcc's should be seperated by a semicolon, all in one string.
send_email("SUBJECT", "BODY", "USERNAME", "PASSWORD", "RECIPIENTS", cc="CCs", bcc="BCCs", files=["./ATTACHMENT1.png"], server="smtp.outlook.com")
# recommended way to handle errors is a try/except block:
try:
send_email("SUBJECT", "BODY", "USERNAME", "PASSWORD", "RECIPIENTS")
except Exception as e:
# do something with e
print(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
email-stuff-0.0.13.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file email-stuff-0.0.13.tar.gz
.
File metadata
- Download URL: email-stuff-0.0.13.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e61b2a15b5f690ee8497bb9a4f115a0182dadb2f20b301117a8c1447316137e |
|
MD5 | fbb38790dc3cd087c237370e5ef94756 |
|
BLAKE2b-256 | c05b8083dee3a8c98347c48773453e7cd545f5318542f0ef98eb881e9633f364 |
File details
Details for the file email_stuff-0.0.13-py3-none-any.whl
.
File metadata
- Download URL: email_stuff-0.0.13-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4621fca963dd3bc97e8f01210b300a139f8759dfa39f9c39fa12e4d3256ad3fd |
|
MD5 | 5a53d5119976766947d0cb9fd6c5ff84 |
|
BLAKE2b-256 | dac8e4a62ca802063c131d90c20073bc8b855a9955b961f85a6b9c27041e8439 |