[WordPress] 外掛分享: SMTP for Contact From 7

前言介紹

  • 這款 WordPress 外掛「SMTP for Contact From 7」是 2022-11-19 上架。
  • 目前有 900 個安裝啟用數。
  • 上一次更新是 2022-11-21,距離現在已有 894 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 5.5 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.1 以上。
  • 有 2 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

codekraft |

外掛標籤

mail | smtp | phpmailer | WP Mail SMTP | mail template |

內容簡介

WordPress使用PHPMailer從本地電子郵件伺服器傳送電子郵件,但有時你的電子郵件可能被電子郵件提供者拒收......
這可能是由於多種原因造成的,有時是因為郵件伺服器未配置,有時是因為域名的DKIM、DMARC和SPF記錄已正確設置等等...
無論如何,您可以通過使用外部SMTP伺服器並使用它發送電子郵件來避免任何問題!

附加功能

✅即時測試:使用REST-API進行測試電子郵件設定的模塊(避免重新加載頁面進行此類測試)。將捕獲整個php mailer的輸出,這將對於配置錯誤或錯誤的參數是可能的情況非常有用。
✅自定義模板:使用模板包裝CF7電子郵件,因此您的電子郵件將具有較少的文字和更漂亮的格式!模板可以為每個表單定製和國際化。
✅自動化報告:選擇何時以及您想收到的報告內容,我將向您發送發送的和失敗的電子郵件的摘要

此外掛是無廣告,我不會試圖向您出售任何專業版本!如果您想做出貢獻,有許多方法可以做到這一點,從簡單的建議和錯誤報告到翻譯和貢獻代碼。請見下文如何實現!

SMTP

SMTP代表"簡單郵件傳輸協議"。它是互聯網協議家族中基於連接的基於文本的網絡協議,因此在ISO/OSI模型的第七層,即應用層上。
像任何其他網絡協議一樣,它包含網絡計算機之間正確通信的規則。 SMTP特別負責從寄件人發送和轉發電子郵件到收件人。
自1982年作為Arpanet中"Mail Box Protocol"的繼承者發布以來,SMTP已成為發送電子郵件的標準協議。但是,SMTP程序對普通消費者仍然基本上不可見,因為它在使用的電子郵件程序背景下執行。
只有在軟件、網頁上的webmail應用程式或移動電子郵件應用程式在創建帳戶時未自動確定SMTP協議時,才必須手動設置SMTP協議,以確保平滑的電子郵件交流。

SMTP預設值

Aruba
Gmail(tls和ssl)
Yahoo(tls和ssl)
Outlook(tls和ssl)
Office365(tls)

您是否想找到更多預設值(您認為對其他用戶有用)?在支援表單中開啟請求,並提供必要的連接數據(auth、服務器地址和端口)。在下一個cf7-smtp版本中,您將在預設值中找到所需的配置。

安全

強烈建議至少將密碼作為常數存儲在config.php中。而且,這也非常容易!它只需要添加

define( 'CF7_SMTP_USER_PASS', 'mySecr3tp4ssWord' );

到您的config.php之前

/* That's all, stop editing! Happy publishing. */

所有密碼將被加密存儲,但將其放入數據庫仍然不是好的實踐!

快速設置

像使用者密碼一樣,還可以定義其他常量。可用的常量是CF7_SMTP_HOST、CF7_SMTP_PORT、CF7_SMTP_AUTH、CF7_SMTP_USER_NAME、CF7_SMTP_USER_PASS、CF7_SMTP_FROM_MAIL、CF7_SMTP_FROM_NAME

但是,為了快速設置插件,還有一個常量包裝了所有其他常量,因此如果您管理多個網站,這將非常方便!

define(
'CF7_SMTP_SETTINGS',
array(

原文外掛簡介

WordPress uses PHPMailer to send mail from with your local mail server, but it can happen that your mail were not accepted by mail providers…
This can happen for several reasons, sometimes because the mail server is not configured or sometimes because the records DKIM, DMARC and SPF of the domain been set up correctly and so on…
Anyway you can avoid any problems by using an external SMTP server and sending mail with it!
Additional features

✅ Live testing: a module for testing e-mail settings with the Rest-Api (that avoid to reload the page for this kind of test). The entire output of the php mailer will be captured, which will be useful in case of configuration errors or the wrong parameter when is possible.
✅ Customised template: wrap cf7 emails with a template, so your emails will have a less textual and a little prettier format! The template can be customised for each form and internationalized.
✅ Automated Reports: choose when and what email you want to receive the report and I will send you a summary of sent and failed emails

This plugin is ads free and I don’t want to try to sell you any pro version! If you want to contribute, there are many ways to do so, from simple suggestions and bug reports to translating and contributing code. See below how to do it!
SMTP
SMTP stands for ‘Simple Mail Transfer Protocol’. It is a connection-oriented, text-based network protocol of the Internet protocol family and as such is on the seventh layer of the ISO/OSI model, the application layer.
Like any other network protocol, it contains the rules for proper communication between networked computers. SMTP is specifically responsible for sending and forwarding e-mails from a sender to a recipient.
Since its release in 1982 as the successor to the ‘Mail Box Protocol’ in Arpanet, SMTP has become the standard protocol for sending e-mails. However, the SMTP procedure remains largely invisible to the normal consumer, as it is executed in the background by the e-mail programme used.
Only if the software, the webmail application on the browser or the mobile e-mail application does not automatically determine the SMTP protocol when creating an account, does it have to be set manually to ensure smooth e-mail traffic.
SMTP presets

Aruba
Gmail (tls and ssl)
Yahoo (tls and ssl)
Outlook (tls and ssl)
Office365 (tls)

Would you like to find more presets (that you think are useful to other users)? Open a request in the support form and provide the necessary connection data (auth, server address and port). In the next cf7-smtp version you will find the required configuration among the presets.
Security
it’s warmly advised to store at least the password into config.php as a constant. And in addition, it’s also very easy! It needs only to add
define( 'CF7_SMTP_USER_PASS', 'mySecr3tp4ssWord' );

into your config.php just before
/* That's all, stop editing! Happy publishing. */

All passwords will be stored encrypted, but still it is not good practice to put it into database!
Quick setup
as with the user password other constants can also be defined. Available constant are CF7_SMTP_HOST, CF7_SMTP_PORT, CF7_SMTP_AUTH, CF7_SMTP_USER_NAME, CF7_SMTP_USER_PASS, CF7_SMTP_FROM_MAIL, CF7_SMTP_FROM_NAME
But, to quickly set up the plugin there is one constant that wraps all the others, so in case you manage multiple websites this will be very convenient!
define(
'CF7_SMTP_SETTINGS',
array(
'host' => string,
'port' => number,
'auth' => ''|'tls'|'ssl',
'user_name' => string,
'user_pass' => string,
'replyTo' => true|false,
'insecure' => true|false,
'from_mail' => email,
'from_name' => string,
));

Template
Wouldn’t it be better to have a small container to make our mail a little prettier? Well we have it!
Furthermore, if you prefer to use your own template for mail, simply create it by following these steps:
1. Create a folder named “cf7-smtp/” in your template folder.
2. Copy what you find here into it
3. Name it default.html (or default-{{CONTACT-FORM-ID}}-{{LANGUAGE}}.html depends on your needs)
4. (Optional) You can, customize logo, website link and other template parts. checkout the filter documentation on GitHub/wiki
Support
Community support: via the support forums on wordpress.org
Bug reporting (preferred): file an issue on GitHub
Contribute
We love your input! We want to make contributing to this project as easy and transparent as possible, whether it’s:

Reporting a bug
Testing the plugin with different user agent and report fingerprinting failures
Discussing the current state, features, improvements
Submitting a fix or a new feature

We use GitHub to host code, to track issues and feature requests, as well as accept pull requests.
By contributing, you agree that your contributions will be licensed under its GPLv2 License.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「SMTP for Contact From 7」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.0.1 | trunk |

延伸相關外掛(你可能也想知道)

文章
Filter
Apply Filters
Mastodon