跳至内容
WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

MountDev Email Delivery for Cloudflare

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

MountDev Email Delivery for Cloudflare

作者:Cascadia Web Services
下载
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

MountDev Email Delivery for Cloudflare sends every email your WordPress site creates through Cloudflare Email Service. That covers WordPress itself, your theme and any plugin that sends mail the standard way: password resets, order emails, form notifications and help desk replies.

It connects to Cloudflare’s Email Sending API with your Account ID and an API token. There is no SMTP server, port or password to configure.

If WordPress is not sending email, or your messages land in spam, sending through a dedicated mail service from your own domain is the usual fix. This plugin does that with Cloudflare.

Features

  • Cloudflare Email Service delivery. Every message goes to Cloudflare in a single API request, with To, Cc, Bcc, Reply-To, HTML or plain text, custom headers and attachments.
  • One sender name on every email. Help desks and form plugins often send with their own sender name. Turn on “Always use this name” and every email shows the name you choose. The From address is left as the sending plugin set it, so replies still reach the right inbox.
  • Test email. Send a test from the settings screen to confirm delivery before you rely on it.
  • Email log. Every message is recorded with its recipients, subject, body, headers, status and Cloudflare’s response. Search by recipient or subject, filter by status or date, and view any message in full.
  • Resend from the log. Send a logged email again in one click. Attachments are not stored, so they are not included in a resend.
  • Log retention. Old entries are deleted automatically after 7, 14, 30, 60, 90, 180 or 365 days, or kept forever. The default is 30 days.
  • Encrypted API token. Your Cloudflare token is encrypted with AES-256 before it is saved. This uses PHP’s OpenSSL extension, which most hosts include.
  • Safe fallback. While the plugin is switched off or not yet set up, WordPress sends email the way it normally does.

Requirements

  • A Cloudflare account with your domain on Cloudflare DNS.
  • A sender domain set up for Email Sending in Cloudflare.
  • A Cloudflare API token with the Email Sending permission.

Full setup guide: https://cascadiawebservices.com/products/email-delivery-for-cloudflare

External services

This plugin connects to the Cloudflare Email Service (Cloudflare’s Email Sending REST API) to deliver your site’s outgoing email. This connection is required for the plugin to function: when enabled, the plugin replaces WordPress’ built-in mail transport and hands every outgoing message to Cloudflare for delivery. The service is provided by Cloudflare, Inc.

What data is sent, and when:

  • Data is sent only while the plugin is enabled and configured with your Cloudflare Account ID and API token. When the plugin is disabled or not yet configured, nothing is sent to Cloudflare and WordPress sends email normally.
  • A request is sent to Cloudflare each time your site sends an email. This includes email generated by WordPress core, your theme, and other plugins through the standard wp_mail() function, as well as the manual “Send Test” and “Resend” actions on the plugin’s admin screens.
  • Each request transmits the message and the information required to deliver it: the From, To, Cc, and Bcc addresses; the subject; the message body (HTML and/or plain text); any custom email headers; and any file attachments included with the message. Your Cloudflare Account ID and API token are also sent, to authenticate the request.
  • Requests are sent to Cloudflare’s API endpoint at https://api.cloudflare.com.

This plugin does not send your data to any other third party.

Cloudflare’s legal terms:

  • Terms of Use: https://www.cloudflare.com/terms/
  • Privacy Policy: https://www.cloudflare.com/privacypolicy/

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation.

屏幕截图

Settings: connect Cloudflare, set the default sender and choose how long to keep logs.
Settings: connect Cloudflare, set the default sender and choose how long to keep logs.
Send Test: confirm delivery with a test email.
Send Test: confirm delivery with a test email.
Email Log: search, filter, view and resend sent email.
Email Log: search, filter, view and resend sent email.

安装

  1. In WordPress, go to Plugins, then Add New, and search for “MountDev Email Delivery for Cloudflare”. Or upload the ZIP file.
  2. Activate the plugin.
  3. Go to Settings, then Email Delivery.
  4. Enter your Cloudflare Account ID, API token and default From address, then turn on sending.
  5. Use the Send Test tab to confirm delivery.

常见问题

Is this an SMTP plugin?

It does the same job as an SMTP plugin: it takes over WordPress email and sends it through a proper mail service. The difference is that it uses Cloudflare’s Email Sending API instead of SMTP, so there are no server, port or password settings.

Does it work with other plugins that send email?

Yes. It hooks the pre_wp_mail filter, so any email sent through the standard wp_mail() function goes through Cloudflare. That includes WooCommerce, form builders and help desk plugins.

A plugin sends email with the wrong sender name. How do I fix it?

Enter your Default From Name in the settings and leave “Always use this name, even when another plugin sets its own” checked. Every email will then use that name.

Where do I get a Cloudflare API token?

In the Cloudflare dashboard, create an API token with permission to use Email Sending for your account. Your Account ID is on the account overview page.

Is there a size limit?

Cloudflare accepts messages up to 5 MB in total, including attachments. Larger messages are not sent, and the log records why.

How long are logs kept?

30 days by default. You can choose 7, 14, 30, 60, 90, 180 or 365 days, or keep logs forever, on the Settings tab. There is also a button to run the cleanup straight away.

评价

此插件暂无评价。

贡献者及开发者

「MountDev Email Delivery for Cloudflare」是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • Cascadia Web Services

帮助将「MountDev Email Delivery for Cloudflare」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

1.0.3

  • Fixed: Emails Cloudflare refused, because the address bounced before or is on your Cloudflare suppression list, were logged as sent. They are now logged as failed with the refused addresses, and WordPress is told the email was not sent. If only some recipients are refused, the email is logged as sent with a note naming them.
  • Fixed: Addresses Cloudflare lists as suppressed are now treated as not sent, the same way.
  • Changed: The Email Log shows Cloudflare’s reply in plain words, such as which addresses were delivered, queued, bounced or suppressed, with the raw reply one click away.

1.0.2

  • Changed: The advertising images beside the settings are gone. In their place are two plain WordPress boxes with text links, and the plugin is about 1 MB smaller.
  • Added: HTML emails in the Email Log now show as they looked, with a switch to see the HTML source. The preview runs no scripts, and images from other sites load only when you click Load images.

1.0.1

  • New setting: always use the Default From Name, even when another plugin (a help desk or form builder, for example) sends with its own sender name. On by default. The From email address is not changed.

1.0.0

  • Initial release: Cloudflare Email Service delivery, test email, email log with resend, and log retention.

额外信息

  • 版本 1.0.3
  • 最后更新:4 天前
  • 活跃安装数量 不到10
  • WordPress 版本 5.7 或更高版本
  • 已测试的最高版本为 7.1.2
  • PHP 版本 7.4 或更高版本
  • 语言
    English (US)
  • 标签
    cloudflareemailemail logsmtptransactional email
  • 高级视图

评级

尚未提交反馈。

您的评价

查看全部评论

贡献者

  • Cascadia Web Services

支持

有话要说吗?是否需要帮助?

查看支持论坛

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • 周边商品 ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗
The WordPress® trademark is the intellectual property of the WordPress Foundation.