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", sent_from="SENDER_ADDRESS", 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)
Metadata
Release files for email-stuff 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| email-stuff-0.1.0.tar.gz | 3.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| email_stuff-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / email-stuff-0.1.0.tar.gz
| Download URL | email-stuff-0.1.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2494b4d82d2ec6bb0c07b6cf80624376333f8fc9525879e787ca0fd35fe9ecd3
|
|
BLAKE2b-256 checksum How to use checksums |
3e84e0e0a375180e58c8098431d71c7d4a29ead64f609b199fa459f622a62cd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Release files / email_stuff-0.1.0-py3-none-any.whl
| Download URL | email_stuff-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13107bfdf7a9f3f0df4a61278c62731c5bb7d11b72a958f5fdfc8b296c441f7b
|
|
BLAKE2b-256 checksum How to use checksums |
f7ec19ed8de1a93da80368d1bf9c2a0186371634d3fc6b336e01c0968e061476
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Security for email-stuff 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.