发送大量自动电子邮件
Automail的Python项目详细描述
汽车票
Automail是一个开源的python包,可以简化批量邮寄。在
该分发版可在以下平台上使用:
安装:
pip install Automail
软件包功能:
Automail有2个用户功能:
- csv_list(csv_FILE):此用户函数生成列表列表
包含接收者的详细信息
- 函数参数:
- CSV_FILE:指向文件位置
- 函数参数:
用法:
^{pr2}$输出:
Please enter the column name with receiver names: Column name Please enter the column name with receiver email-id: Column name
- 发送电子邮件(主题、正文、附件、收件人):发送电子邮件是一个独立的功能
它可以在不传递任何参数的情况下工作
- 功能参数:
- 主题:此参数负责电子邮件的主题。在
- 正文:
- 此参数负责电子邮件正文,支持的格式标记如下。
- [x] HTML模板
- [x] 文本
- []表单(未测试)
- 主体还支持在需要的地方添加接收者的名称use{name}。在
- 此参数负责电子邮件正文,支持的格式标记如下。
- 附件:此参数负责附件源,并支持各种文件格式。在
- receivers:此参数传递使用csv\u listfinAction的列表。在
- 功能参数:
用法:
fromAutomailimportsend_email,csv_listsubject='This is the email subject'body='This is the email body {name}'# {name} will automatically get replaced by Name present in CSV fileattachment='location of attachment file'receivers=csv_list('location to the csv file')send_email(subject,body,attachment,receivers)
用法:
Please enter your email address: xzy@gmail.com Please enter your password: .......
NOTE: input for password field won't be displayed while typing for secutity purposes.
注:
In some cases google might restrict login in that case you need to enable Less secure app access click here
运行试验
pip install -r requirements.txt pytest -s
许可证
联系人
想帮忙吗?在
欢迎您的贡献!在
如果请求符合项目要求,则将合并请求。在
对于原型,也欢迎使用ctypes的纯python实现。 我们将来可能会把它移植到一个适当的扩展。
请提问here。在
- 项目
标签: