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 hashes)
Built Distribution
Dmail-0.0.1-py3-none-any.whl
(14.9 kB
view hashes)