一个简单的命令行电子邮件客户端!
cmail的Python项目详细描述
邮箱
一个简单的命令行电子邮件客户端!
- 发送带有附件的电子邮件。
- 保存联系人
安装
要安装cmail,只需,
$ pip install bshare
使用量
帮助命令:
$ cmail -h usage: cmail.py [-h] [-m] [-c] [-r] [-a name email] A simple command-line email client! optional arguments: -h, --help show this help message and exit -m, --mail Send mail. -c, --contacts Shows the saved email contacts. -r, --reset Reset contacts list to default. -a name email, --add name email Add new contact.
发送邮件:
$ cmail -m To: example@gmail.com Subject: test Text: hi there! Want to attach any files? (y/n): n Enter username (press Enter to use default 'me'): indianpythonista@gmail.com Enter password: Your mail was sent successfully!
保存联系人:
$ cmail -a me nikhilksingh97@gmail.com New contact saved!
显示联系人:
$ cmail -c +---------+--------------------------+ | name | email | +=========+==========================+ | me | nikhilksingh97@gmail.com | +---------+--------------------------+ | example | example@example.com | +---------+--------------------------+
清除联系人列表:
$ cmail -r Contacts list reset to default.