Skip to main content

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.

Mail

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 .env path - 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 .env is 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

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py-send-e-mail-0.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

py_send_e_mail-0.1-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

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

Hashes for py-send-e-mail-0.1.tar.gz
Algorithm Hash digest
SHA256 c609883616b967d16caf9b1feb2825c1bb7769bc1ca4d775ca653821f53546c5
MD5 03d16adb98a2d8e55ccfbef064734c1b
BLAKE2b-256 f99bee652f4991aaef8fb6294b020db625fe8d75c04708645372dc8c6e56ec29

See more details on using hashes here.

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

Hashes for py_send_e_mail-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f125c5e4c652a7a23658ca23ceda1c6fb02d67154edb68aa0fc6c277db0d6dcc
MD5 cc86997ee42455e9b42cfa2c8625bdfe
BLAKE2b-256 3f412a6fdf39957ba7628cf47babe23cf6116d95255fa75b16f96f012697d028

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page