Django Mailer的加载项,允许发送受限制的电子邮件
django-mailer-throttled的Python项目详细描述
安装
从pypi获得最新的稳定版本
pip install django-mailer-throttled
从github获取最新提交
pip install -e git+git://github.com/bitmazk/django-mailer-throttled.git#egg=mailer_throttled
将mailer_throttled添加到INSTALLED_APPS
INSTALLED_APPS=(...,'mailer''mailer_throttled',)
用法
将MAILER_THROTTLE_AMOUNT设置为要发送的电子邮件数 每次运行发送。
不再使用原始的send_mail管理命令,而是使用新的 send_mail_throttled。
贡献
如果您想参与此项目,请执行以下步骤
# Fork this repository # Clone your fork mkvirtualenv -p python2.7 django-mailer-throttled make develop git co -b feature_branch master # Implement your feature and tests git add . && git commit git push -u origin feature_branch # Send us a pull request for your feature branch