baa

Baa~ Baa~


License
MIT
Install
pip install baa==0.0.2

Documentation

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.Bar()
    b.add_receiver('zhangsan@163.com')
    b.send("Hello, world!")