send email
Project description
SMTP Mail
Usage
import smtpmail
import os
sender = os.getenv('smpt_sender')
pswd = os.getenv('smtp_pass')
host = os.getenv('smtp_host', 'smtp.gmail.com')
port = os.getenv('smtp_port', 587)
read_only_settings: smtpmail.Settings = smatpmail.Mail.init(sender, pswd, host, port)
###
smtpmail.Mail.send_mail(to, subject, content, content_type='plain')
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
smtpmail-1.0.1.tar.gz
(2.1 kB
view details)
Built Distribution
File details
Details for the file smtpmail-1.0.1.tar.gz
.
File metadata
- Download URL: smtpmail-1.0.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cadf11eb1e37cbd063d2873c4f73d0352c0a7bb65a42f464aa3a6fbcac022287 |
|
MD5 | f7a069198bc1b1b73ec525945b1388c3 |
|
BLAKE2b-256 | 9029af1b9e778c8072a74930126a82d867c22d7e464115f03e9ee2e1b9607c52 |
File details
Details for the file smtpmail-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: smtpmail-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 810ccf8bfffece51fdc8c07d9c799a949ca4e5d50eb1e6c18a59a500bf9c303f |
|
MD5 | 4e67194f3a4ef0620190dd6638e776a5 |
|
BLAKE2b-256 | 47b70a063dd5fc5f3e0dd9a837196ee565a655cb044715b956460a105bba2821 |