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.
It has the possibility to send markdown content ( that is converted to html )
Installation
A simple pip install will do :
python -m pip install Dmail
Demo
import os
from Dmail import Gmail
# email info
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")
# Send Markdown e-mails :
message = """
# Email Content
This is a **test**
"""
with Gmail(sender_email, password) as gmail:
gmail.add_attachment(r"tests\test_image.jpg", "another_name.jpg")
gmail.send_message(message, receiver_email, "Subject", subtype='md')
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.1.1.tar.gz
(2.8 kB
view details)
Built Distribution
Dmail-0.1.1-py3-none-any.whl
(15.8 kB
view details)
File details
Details for the file Dmail-0.1.1.tar.gz
.
File metadata
- Download URL: Dmail-0.1.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eccbcff9b5b9ec5620cf39a260b90e56ba163d027951f572d8123fe290f9a51d |
|
MD5 | 21f6a06f3b86d21b2fa490b385e98560 |
|
BLAKE2b-256 | 14cb7a4e42e912438730dcc173950afa6c4dd09c5de56bbc70c033caa9fe7661 |
File details
Details for the file Dmail-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: Dmail-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6174b9aff35c03dd6e0ff9810ed69f492defba30591c2f579916e0d6f841ad75 |
|
MD5 | aad8612d1984397fcd7af0b4a4a5135a |
|
BLAKE2b-256 | c28801195a9f1aa67e194a1bba3c892fd71e147e24d6f73fb68ca6b6ba4c2352 |