[WordPress] 外掛分享: Static Mail Sender Configurator

首頁外掛目錄 › Static Mail Sender Configurator
10+
安裝啟用
尚無評分
972 天前
最後更新
問題解決
WordPress 6.0+ PHP 7.4.0+ v0.10.0 上架:2021-07-01

內容簡介

這是一個簡單且靜態配置 WordPress 內部郵件發件人 (From:) 地址的外掛程式。

這個外掛程式非常簡單,它並不使用資料庫或其他儲存方式,你只需要在 wp-config.php 或環境變數中添加常數 WP_MAIL_FROM。

這個外掛程式定義這個配置為主要優先順序,以設置該預設值,這意味著後續應用的其他較低優先順序的外掛程式可以簡單地重寫那個值。

範例
在 `wp-config.php` 檔案中使用常數:

將以下行添加到 wp-config.php 檔案:

const WP_MAIL_FROM = '[email protected]';

你也可以按以下格式定義發件人姓名:

"名字 姓氏" <[email protected]>

使用環境變數:

同樣的原則也適用於定義環境變數 WP_MAIL_FROM。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.10.0) 或搜尋安裝

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

原文外掛簡介

Simple & static configure WordPress internal mailer sender’s (From:) address.
This plugin is very simple, it doesn’t using database or another storage – you just add the constant WP_MAIL_FROM to wp-config.php or to Environment variable.
Plugin is define this configuration with major priority to set configuration as the default value, that means any orher plugin with lower priority applied afterwards can simple rewrite that value.
Example
Using constant in `wp-config.php` file:
Add this row to wp-config.php file:
const WP_MAIL_FROM = '[email protected]';

You can define sender’s name too by format:
"Name Lastname"

Using Environment variable:
Same principe is available by define Environment variable WP_MAIL_FROM.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon