Easy Email sender Python package
Project description
Email_Sender
Email_Sender is Python Package For Sending Email Easily. This package is trying to help programmer save time adjusting code for sending email.
Installation
you should have python 3
$ pip3 install email_sender
Usage
email_sender have one base class Mail that used to send email using smtp connection.
Parameters
- email - Required - Email of sender. once you initiate it, it can be used for sending emails
- password - Required if envPath is None
- Password is required if you don't specify the
.envpath - in Most case programmer don't wanna put password as string inside their code for that email_sender module use dotenv. - host - default to 'smtp.gmail.com'
- port - default to 587
- envPath - optional
- envPath expect
python pathlib.Path('.env file location').resolve() - envName - optional default to
password- envName if the name of the password in the.envis another name.
Example
from email_sender.mail import Mail
from pathlib import Path
senderEmail = 'sender@gmail.com
receiverEmail = 'receiverEmail@gmail.com'
mail = Mail(senderEmail, envPath=Path('.env'), envName='cha')
message = '''\
Subject: Testing Emails
This is testing email message
'''
mail.send_email(receiverEmail, message)
Clone
if you want to clone and use the repo use the requirement.txt file
pip3 install -r requirements.txt
About Developer
My Name is Temking Mengistu . I am Student at Adama Science and Technology University in field of Computer Science and Engineering. Follow me on
©chapimenge 2020
Project details
Release history Release notifications | RSS feed
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 py-send-e-mail-0.1.tar.gz.
File metadata
- Download URL: py-send-e-mail-0.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c609883616b967d16caf9b1feb2825c1bb7769bc1ca4d775ca653821f53546c5
|
|
| MD5 |
03d16adb98a2d8e55ccfbef064734c1b
|
|
| BLAKE2b-256 |
f99bee652f4991aaef8fb6294b020db625fe8d75c04708645372dc8c6e56ec29
|
File details
Details for the file py_send_e_mail-0.1-py3-none-any.whl.
File metadata
- Download URL: py_send_e_mail-0.1-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f125c5e4c652a7a23658ca23ceda1c6fb02d67154edb68aa0fc6c277db0d6dcc
|
|
| MD5 |
cc86997ee42455e9b42cfa2c8625bdfe
|
|
| BLAKE2b-256 |
3f412a6fdf39957ba7628cf47babe23cf6116d95255fa75b16f96f012697d028
|