Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

email-stuff

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

email-stuff

Email sending functionality package

  • 0.0.13
  • PyPI
  • Socket score

Maintainers
1

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)

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc