[WordPress] 外掛分享: Simple SMTP

首頁外掛目錄 › Simple SMTP
2,000+
安裝啟用
★★★★★
5/5 分(11 則評價)
220 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.0+ v1.3.4.1 上架:2020-03-16

內容簡介

這款 WordPress 外掛可添加簡單且無煩的 SMTP 設置,讓您可以定義自定義設置,尤其適用於無法控制 php mail 功能的主機。

如果啟用日誌,則設置面板中會出現一個新的部分,顯示過去 30 天的最新電子郵件概述,並自動刪除舊的日誌。如果您需要更長期的解決方案,請參閱常見問題解答。

欲知詳細資訊,請參閱GitHub 上的項目 wiki。

環境和常數覆蓋(可選)

這款外掛會優先使用環境和常數存儲的值,而非插件保存的等效設置,因此更容易通過部署使用該插件。

這些值可以存儲在系統的環境設置中,也可以存儲在 wp-config.php 中,例如define( 'SEE_BELOW', 'your_value_here' );。

接受的參數

SMTP_HOST(字符串)郵件服務器的主機名稱。
SMTP_PORT(整數)端口地址(通常為 25、465 或 587)。
SMTP_AUTH(整數,1 或 0)向您的郵件服務器提供以下認證。
SMTP_USER(字符串)此帳戶的郵件用戶名。
SMTP_PASS(字符串)Mailer 帳戶的密碼。
SMTP_FROM(字符串)強制所有電子郵件均來自此電子郵件地址。
SMTP_FROMNAME(字符串)強制所有電子郵件均具有特定的電子郵件名稱。
SMTP_SEC(字符串)使用特定的電子郵件安全方法(接受 ‘def’(默認)、‘ssl’ 和 ‘tls’)。
SMTP_NOVERIFYSSL(布林值)禁用對 SMTP 服務器證書的驗證(不建議使用)。
SMTP_LOG(布林值)控制日誌記錄能力和可見性。
SMTP_DISABLE(布林值)禁用送出電子郵件功能,如果啟用了日誌記錄,則仍會記錄這些電子郵件,但不會發送。

建議至少將SMTP_PASS存儲在 wp-config.php 文件中(並設置正確的文件權限)。如果有 openssl 擴展,該外掛會嘗試加密數據庫中的密碼。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.3.4.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Simple SMTP」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Adds a simple, no-fuss SMTP settings to your WordPress installation that lets you define custom settings, which is especially useful for hosts with no control over the php mail functionality.
If logging is enabled, a new segment in the settings panel will show up with a 30-day overview of recent emails, and will automatically prune older logs. Please see the FAQ if you want a more permanent solution.
For more information, please see the project wiki on GitHub.
Environment and constant overriding (optional)
This plugin will prefer environmental and constant-stored values over the plugin-saved equivalent settings, making it easier to use this plugin via deployment.
These can be either stored in your systems env setup, or in wp-config.php as define( 'SEE_BELOW', 'your_value_here' );.
Accepted Parameters

SMTP_HOST (string) Mail server hostname.
SMTP_PORT (integer) Port address (usually 25, 465 or 587).
SMTP_AUTH (integer, 1 or 0) Pass below credentials to your mail server.
SMTP_USER (string) The mail username for this account.
SMTP_PASS (string) The password for the mailer account.
SMTP_FROM (string) Enforce all emails come from this email address.
SMTP_FROMNAME (string) Enforce all emails to have a certain email name.
SMTP_SEC (string) Use a particular email security method (accepts ‘def’ (default), ‘ssl’, ‘tls’ and ‘off’).
SMTP_NOVERIFYSSL (boolean) Disable validation of the SMTP server certificate (not recommended).
SMTP_LOG (boolean) Controls the logging capability and visibility.
SMTP_DISABLE (boolean) Disables the mailer. They will still be logged if enabled, but won’t send out.

It is recommended to store at least SMTP_PASS in your wp-config.php file (with the correct file permissions set). If the openssl extension is available, the plugin will attempt to encrypt the password in the database.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon