Skip to main content

A Python library for simplifying sending emails using smtplib

Project description

Pydgeon v0.2.4

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.

# 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)

Send emails at a specified time!

Send a simple email with a subject and message:

pydgeon.cooAt("Test Subject", "Coo!", 12, 0, "testReciever@gmail.com", checkDelay=2, exitAfter=False) # Sends an email at 12:00, and keeps checking the time after sending

pydgeon.hootAt("Test Subject", "Hoot!", r"C:\Example\Path\To\File.txt", 12, 0, "testReciever@gmail.com") # Sends an email with attachment at 12:00, and exits the loop after sending  

Features

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

Planned-features

  • None planned right now!

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.2.4.tar.gz (4.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.2.4-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pydgeon-0.2.4.tar.gz
  • Upload date:
  • Size: 4.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.2.4.tar.gz
Algorithm Hash digest
SHA256 6e0ada87ba39cd84684b43e8c89a19a5c8260cdb925e7c7dda4b4a8080ade74c
MD5 c080e9928ae6436a2aab92bffb7f3d61
BLAKE2b-256 1d2cb0e0bd7f0807dcc99b365fd76798d77fb46118d167757e8ab1fc34248d52

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydgeon-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 5.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.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5ceab678a43415f07c82f5147ead18c343ea3ecaa5802917ea4b5ee708531afd
MD5 f6f1e0dc6dfda9605fcf5da937842bc8
BLAKE2b-256 6fbc559b2f8d95af136b9fb293c46af679d1f9b46bacbbdcfe282be4ee0a05df

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