This is a simple package that provides a quick way to send emails through code.
Project description
Dmail
This is a simple package that provides a simple way to send emails through code.
Installation
A simple pip install will do :
python -m pip install Dmail
Demo
import os
from Dmail import Gmail
# list of email_id to send the mail
receiver_email = "xxx@gmail.com"
sender_email = os.environ.get('mail')
password = os.environ.get('pass')
message = """
Email Content
"""
with Gmail(sender_email, password) as gmail:
gmail.send_message(message, receiver_email, "Subject")
p.s. you are welcome to p
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
Dmail-0.0.1.tar.gz
(1.9 kB
view details)
Built Distribution
Dmail-0.0.1-py3-none-any.whl
(14.9 kB
view details)
File details
Details for the file Dmail-0.0.1.tar.gz
.
File metadata
- Download URL: Dmail-0.0.1.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e95e19dfdc18b616ef9b2f58d3cc05f23e9724729d195662381dfc560f6441f4 |
|
MD5 | 0ef11bbe76affda6ced2c890c78a8ed2 |
|
BLAKE2b-256 | d7376c00e22b1bca8e8603d38596dffc0225d1b9c86093889b54866376589ad3 |
File details
Details for the file Dmail-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: Dmail-0.0.1-py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23d3510d7bb75b42da34ef7501dd2073429964aea021fbb9846e7d9b2d4823da |
|
MD5 | 17ce5aa7a98abd3d0e09ca9fa6f1d536 |
|
BLAKE2b-256 | b9f33e54ea6a344eb004e493a6c1d54d0ef115bfb183faffa5a5803e22907ea5 |