Skip to main content

easy use for send emails

Project description

emailz

easy use for send emails

Install

pip install emailz

Simple Use

from emailz import email

email.config(user='ivan-me@163.com',password='***')
email.send(subject='Test', body='hi,\n,it's a test',receivers=['han_zhichao@sina.cn'])

Use HTML

email.send(subject='Test', html='<h2>hi,it's a test</h2>',receivers=['han_zhichao@sina.cn'])

Use Template file

email.send(subject='Test', template='tpl.html',receivers=['han_zhichao@sina.cn'])

With attachments

email.send(subject='Test', attachments=['tpl.html'],receivers=['han_zhichao@sina.cn'])

ToDo

  • Smtp Server mapping
  • @email decorators
  • trigger, crontab or more features
  • theme and templates to choose

Project details


Release history Release notifications

This version

0.12

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for emailz, version 0.12
Filename, size File type Python version Upload date Hashes
Filename, size emailz-0.12.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page