xianqiu / Baa

Sending warning by email.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Baa

Sending warning by email.

Installation

Use one of the following method:

  • pip install
pip --install baa
pip --install baa --upgrade
  • clone repository and install with:
python setup.py install

Usage

  1. Create sender.json and fill the sender account information.
{
  "sender": "baa@163.com",
  "password": "your password",
  "server": "smtp.163.com",
  "port": 465
}
  1. Put sender.json in "main" folder and run the following:
import baa


if __name__ == '__main__':
    b = baa.Baa()
    b.add_receiver('zhangsan@163.com')
    b.send("Hello, world!")

About

Sending warning by email.

License:MIT License


Languages

Language:Python 100.0%