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", 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)

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.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

email_stuff-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file email-stuff-0.1.0.tar.gz.

File metadata

  • Download URL: email-stuff-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for email-stuff-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2494b4d82d2ec6bb0c07b6cf80624376333f8fc9525879e787ca0fd35fe9ecd3
MD5 c73f4c91500df7214cc7f249abb22cd1
BLAKE2b-256 3e84e0e0a375180e58c8098431d71c7d4a29ead64f609b199fa459f622a62cd5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: email_stuff-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for email_stuff-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 13107bfdf7a9f3f0df4a61278c62731c5bb7d11b72a958f5fdfc8b296c441f7b
MD5 bb07a351996fa104603e53c3980129f6
BLAKE2b-256 f7ec19ed8de1a93da80368d1bf9c2a0186371634d3fc6b336e01c0968e061476

See more details on using hashes here.

Supported by

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