A Python library for simplifying sending emails using smtplib
Project description
Pydgeon v0.2.2
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydgeon-0.2.3.tar.gz.
File metadata
- Download URL: pydgeon-0.2.3.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a717b1fa693681ed70ef2bb64ca4962d75d6dd845b3cfafaf44ecf42814b33ce
|
|
| MD5 |
7643734324ce0dedb5141ced38d44893
|
|
| BLAKE2b-256 |
d9abfb2bc5188ff7d1a3385bde9855ff2a1b0d02589d99ad2140b2051afac658
|
File details
Details for the file pydgeon-0.2.3-py3-none-any.whl.
File metadata
- Download URL: pydgeon-0.2.3-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d19fbd60efba036ed0b67de8f8655ddfd5df9f4f51d2041ba6ecd7ade818fd1
|
|
| MD5 |
53a47b6661c7ca0023b5a55df0370970
|
|
| BLAKE2b-256 |
dd0484a80fe839da0f5bd0b79c53537731fb5e0db0e78cadc68c62e4ec2458ce
|