Skip to main content

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


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)

Uploaded Source

Built Distribution

email_stuff-0.0.13-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

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

Hashes for email-stuff-0.0.13.tar.gz
Algorithm Hash digest
SHA256 0e61b2a15b5f690ee8497bb9a4f115a0182dadb2f20b301117a8c1447316137e
MD5 fbb38790dc3cd087c237370e5ef94756
BLAKE2b-256 c05b8083dee3a8c98347c48773453e7cd545f5318542f0ef98eb881e9633f364

See more details on using hashes here.

File details

Details for the file email_stuff-0.0.13-py3-none-any.whl.

File metadata

File hashes

Hashes for email_stuff-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 4621fca963dd3bc97e8f01210b300a139f8759dfa39f9c39fa12e4d3256ad3fd
MD5 5a53d5119976766947d0cb9fd6c5ff84
BLAKE2b-256 dac8e4a62ca802063c131d90c20073bc8b855a9955b961f85a6b9c27041e8439

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page