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
- Create
sender.json
and fill the sender account information.
{
"sender": "baa@163.com",
"password": "your password",
"server": "smtp.163.com",
"port": 465
}
- 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!")