make it easy to use mail
Project description
mailx
介绍
快捷使用mail模块
软件架构
软件架构说明
安装教程
- pip安装
pip install mailx
- pip安装(使用阿里云镜像加速)
pip install mailx -i https://mirrors.aliyun.com/pypi/simple
使用说明
- demo
import mailx
res = mailx.send_text(sub='test sub', content='test content', to_addrs=['test@test.com'])
- 常用设置
- mail.env:
smtp_host={your smtp_host}
smtp_port={your smtp_port}
from_name={your from_name}
smtp_username={your smtp_username}
smtp_password={your_smtp_username}
to_addrs={your smtp_username, split by ","}
- SMTP服务端口号:25或80或465(SSL加密)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mailx-0.0.5.tar.gz
(3.6 kB
view hashes)
Built Distribution
mailx-0.0.5-py3-none-any.whl
(4.1 kB
view hashes)