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 hashes)