[WordPress] 外掛分享: WP SMTP Config

首頁外掛目錄 › WP SMTP Config
200+
安裝啟用
★★★☆☆
3/5 分(2 則評價)
2682 天前
最後更新
問題解決
WordPress 3.0+ v1.2.0 上架:2011-12-18

內容簡介

這個外掛程式會在 WordPress 和 WordPress MU 使用SMTP伺服器寄送電子郵件時,取代預設的 PHP mail() 函數。

您需要在 wp-config.php 檔案裡設定您的 SMTP 設定,而不是在設定頁面中。
優點是沒有任何部落格管理員能夠閱讀這些設定。
而且,若您安裝了 WordPress MU,您只需要放置一次設定。

以下是一個範例配置。

/**
* WordPress SMTP server
*/
define('WP_SMTP_HOST', 'mail.example.com');
define('WP_SMTP_PORT', 25); // 必填欄位 - 預設值:25
define('WP_SMTP_ENCRYPTION', 'tls'); // 必填欄位('tls' 或 'ssl')- 預設值:無密碼
define('WP_SMTP_USER', 'username'); // 必填欄位 - 預設值:無使用者
define('WP_SMTP_PASSWORD', 'password'); // 必填欄位 - 預設值:無密碼
define('WP_SMTP_FROM', 'John Doe <[email protected]>'); // 必填欄位 - 預設值:無客製化寄件地址
define('WP_SMTP_REPLYTO', 'Jane Doe <[email protected]>'); // 必填欄位 - 預設值:無客製化回覆地址

外掛標籤

開發者團隊

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

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

原文外掛簡介

This plugin configures WordPress and WordPress MU to use a SMTP server when sending emails instead of the default PHP mail() function.
You will configure your SMTP settings in your wp-config.php file instead of the settings page.
The advantage is that no admin of your blog can read the settings.
And you only have to place your settings once in cases of a WordPress MU installation.
A sample configuration:
/**
* WordPress SMTP server
*/
define('WP_SMTP_HOST', 'mail.example.com');
define('WP_SMTP_PORT', 25); // obligatory - default: 25
define('WP_SMTP_ENCRYPTION', 'tls'); // obligatory ('tls' or 'ssl') - default: no encryption
define('WP_SMTP_USER', 'username'); // obligatory - default: no user
define('WP_SMTP_PASSWORD', 'password'); // obligatory - default: no password
define('WP_SMTP_FROM', 'John Doe '); // obligatory - default: no custom from address
define('WP_SMTP_REPLYTO', 'Jane Doe '); // obligatory - default: no custom reply to address

延伸相關外掛

文章
Filter
Apply Filters
Mastodon