Skip to main content

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 )

Steins;Gate

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


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.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

Dmail-0.1.0-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file Dmail-0.1.0.tar.gz.

File metadata

  • Download URL: Dmail-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 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

Hashes for Dmail-0.1.0.tar.gz
Algorithm Hash digest
SHA256 451994ad741be1a0ca7b1f85adb30d16537b9640057bff4bea8045aa8ad460f6
MD5 c00d3659fadd1d234f2b8a14320734c5
BLAKE2b-256 3e1d0d11c4f2bb89fe562419b37bb3749cf636101112e045d407d492291c843f

See more details on using hashes here.

File details

Details for the file Dmail-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: Dmail-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.6 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

Hashes for Dmail-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b12e428e5c488da84e117f981d5c9c1b5ae900363a1d5d8b827524534fe569bf
MD5 58531d8859712ca108c08d22a924c417
BLAKE2b-256 6e168925a0bf065d1b7332441ef21820f0c2497d3d54f32e9cb12c2e30e3708e

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