Skip to main content

A Python library for simplifying sending emails using smtplib

Project description

Pydgeon v0.1.3

A simple Python library to simplify sending emails using smtplib.


DISCLAIMER!

ALWAYS USE ENVIRONMENT VARIABLES OR OTHER METHODS OF SAFELY STORING PASSKEYS AND EMAILS.
NEVER HARD-CODE PASSWORDS INTO YOUR CODE. ALWAYS USE ENVIRONMENT VARIABLES TO STORE GMAIL-SPECIFIC PASSKEYS.


Table of Contents


Installation

Install Pydgeon using pip:

pip install pydgeon

Usage

Here are examples of how to use Pydgeon:

Set up the Sender Email and Passkey

Always use environment variables to store sensitive data like passkeys and emails.

import pydgeon

# Set up the sender email and passkey
pydgeon.dovecot("testSender@gmail.com", "<PASSKEY-HERE>")

Send a Basic Email!

Send a simple email with a subject and message:

# Send a basic email
pydgeon.coo("Test Subject", "Coo!", "testReceiver@gmail.com")

Send an Email with an Attachment!

Include a file attachment with your email:

# Send an email with an attachment
pydgeon.hoot("Test Subject", "Hoot!", r"C:\Example\Path\To\File.txt", "testReceiver@gmail.com")

Send multiple emails at the same time!

Send to multiple recievers at a time:

# Define list of recievers
receivers = ["testReceiver1@gmail.com", "testReceiver2@gmail.com", "testReceiver3@gmail.com"]

# Send multiple emails to multiple receivers
pydgeon.coo("Test Subject", "Coo!", receivers)
pydgeon.hoot("Test Subject", "Hoot!", r"C:\Example\Path\To\File.txt", receivers)

Features

  • Simplified email sending!: Use simple methods to send emails quickly.
  • Send to multiple emails at one time!: Use a ist to send multiple emails at the same time
  • Attachment support!: Send emails with file attachments.

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

pydgeon-0.1.3.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

pydgeon-0.1.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file pydgeon-0.1.3.tar.gz.

File metadata

  • Download URL: pydgeon-0.1.3.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for pydgeon-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ade962f97dfffa19566cbc22692d037a42a4ac3919a4f6f8f52b97b7d0ccca4e
MD5 871cd8905505f6d47eadda1676494543
BLAKE2b-256 ee1a378914a1098367d9d1ae03d3e1f6f26bcb7f618d60544ec347e955e2f270

See more details on using hashes here.

File details

Details for the file pydgeon-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: pydgeon-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for pydgeon-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 50030c58ce0e59e56f359342e3195dfb6aa0d50c430cf60bd7b75f2640d1e730
MD5 1025192b7ec9f2d925814c6990326583
BLAKE2b-256 6f4d045c9d0b31ae917cae7ffe536709e2b9a45498142ff3e5dabedb9e958bb7

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