跳转到主要内容

AX3 Email是一个使用Huey任务发送电子邮件的Django应用程序。

项目描述

AX3 Email

AX3 Email是一个使用Huey任务发送电子邮件的Django应用程序。

安装

您可以使用以下命令从PyPI包中轻松安装AX3 Email

pip install ax3-email

安装包后,您需要配置项目设置。具体来说,您需要将 ax3_email 添加到您的 INSTALLED_APPS

INSTALLED_APPS += ['ax3_email']

配置

接下来,您需要添加电子邮件后端设置。以下是操作方法

# app/settings.py
EMAIL_BACKEND = 'ax3_email.backends.AX3EmailBackend'

您还可以为AX3 Email指定其他设置

# app/settings.py
AX3_EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' # Optional - Default is smtp (django). This is the Django Email that actually sends the emails.
AX3_EMAIL_RETRIES  # Optional - Default is 3. This is the maximum number of times to retry sending an email.
AX3_EMAIL_DELAY # Optional - Default is 600. This is the time in seconds between attempts to send an email.
AX3_EMAIL_BACKUP_LIST # Optional - This is a list of emails to send a BCC backup copy of each email.
AX3_ONLY_BACKUP_LIST # Optional - If set to True, emails will only be sent to the backup list.
EMAIL_SUBJECT # Optional - This is a string format for all email subjects. For example, you can use '[ax3_prefix] {} ' as a prefix.

发布包

要构建包,您需要运行以下命令

rye build && rye publish

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分发

ax3_email-2.0.0.tar.gz (5.2 kB 查看哈希值)

上传时间 源代码

构建版本

ax3_email-2.0.0-py3-none-any.whl (5.8 kB 查看哈希值)

上传时间 Python 3

由以下支持