SMTP Mailer

外掛說明

SMTP Mailer 外掛能讓網站管理員設定處理全部網站外送電子郵件的郵件伺服器,它能將 wp_mail 函式的控制權轉由 SMTP 處理。

SMTP Mailer 附加元件

SMTP Mailer 設定

  • SMTP 伺服器:輸入外寄郵件伺服器,例如 smtp.gmail.com。
  • SMTP 驗證:設定傳送電子郵件時是否進行 SMTP 驗證。選取 [驗證],則需要提供 SMTP 的使用者名稱及密碼。
  • SMTP 使用者名稱:用於連接至 SMTP 伺服器的使用者名稱。
  • SMTP 密碼:用於連接至 SMTP 伺服器的密碼。
  • 加密類型:傳送電子郵件時的加密方式,建議使用 TLS。
  • SMTP 通訊埠:傳送電子郵件時使用的通訊埠。加密類型如果為 TLS,請設定為 587;如果為 SSL,請設定為 465。
  • 寄件者電子郵件地址:傳送電子郵件時所使用的寄件者電子郵件地址。
  • 寄件者名稱:傳送電子郵件時所使用的寄件者名稱。

SMTP Mailer 測試用電子郵件

外掛設定完成後,網站管理員可以傳送測試用電子郵件,測試外掛傳送通知功能是否能正確執行。

  • 收件者:收件者的電子郵件地址。
  • 主旨:電子郵件的主旨。
  • 郵件內容:電子郵件內容。

已知相容外掛

SMTP Mailer 能與任何使用 WordPress Mail 函式的外掛協同運作,以下是已經過測試驗證相容的表單及聯絡表單外掛:

  • Contact Form 7
  • Jetpack 聯絡表單
  • Visual Form Builder
  • Fast Secure Contact Form
  • Formidable Forms
  • Contact Form by BestWebSoft

如需進一步了解外掛設定,請造訪 SMTP Mailer 外掛頁面。

螢幕擷圖

  • SMTP Mailer 設定
  • SMTP Mailer [測試用電子郵件] 分頁

安裝方式

  1. 前往 WordPress 控制台的 [安裝外掛] 頁面。
  2. 點擊 [上傳外掛] 按鈕。
  3. 在裝置上瀏覽外掛安裝套件檔案 smtp-mailer.zip
  4. 點擊 [立即安裝],然後點擊 [啟用] 按鈕。

常見問題集

目前尚無

使用者評論

2025 年 4 月 16 日 1 則留言
For sensible reasons, not all of us upgrade Wordpress the moment a new version is released. So I was surprised to find that, today, my website was no longer able to send SMTP emails when nothing on the server had changed… except I found that SMTP Mailer had been upgraded to 1.1.18 and, when sending email, would fail with the following error: [16-Apr-2025 18:44:29 UTC] PHP Warning: require_once(/home/xxxx/public_html/wp-includes/class-wp-phpmailer.php): Failed to open stream: No such file or directory in /home/xxxx/public_html/wp-content/plugins/smtp-mailer/main.php on line 586[16-Apr-2025 18:44:29 UTC] PHP Fatal error: Uncaught Error: Failed opening required ‘/home/xxxx/public_html/wp-includes/class-wp-phpmailer.php’ (include_path=’.:/opt/cpanel/ea-php82/root/usr/share/pear’) in /home/xxxxx/public_html/wp-content/plugins/smtp-mailer/main.php:586 Version 1.1.18 assumes that wp-includes/class-wp-phpmailer.php is available on previous versions of Wordpress… it isn’t … and the plugin fails because this file does not exist.
2024 年 11 月 6 日
In the world of WP plugins, it’s easy to get bogged down by bloated, feature-rich options. This plugin is a refreshing departure from that trend. It’s lean, mean, and focused on doing one thing exceptionally well: sending emails.
2024 年 11 月 5 日 3 則留言
HelloI am getting an error like the one below. I couldn’t find the source of this problem. Can you help? Thanks Fatal error: Uncaught Error: Call to undefined function php_uname()in /home/zettdekor/public_html/wp-content/plugins/smtp-mailer/main.php on line 221 Call stack: SMTP_MAILER::server_info_settings()wp-content/plugins/smtp-mailer/main.php:145 SMTP_MAILER::options_page()wp-includes/class-wp-hook.php:324 WP_Hook::apply_filters()wp-includes/class-wp-hook.php:348 WP_Hook::do_action()wp-includes/plugin.php:517 do_action()wp-admin/admin.php:259 require_once()wp-admin/options-general.php:10
2024 年 8 月 1 日
Hi, I am using smpt.gmail.com i want to change From email and name. its uses my Google name and email as from but i want to change it to user name and email of form sender. can you please help me?
2024 年 7 月 2 日
Not working with Hetzner Servers.If I try other Plugins with same credentials everything works fine.
2024 年 5 月 30 日
Set up fields were checked and double checked and each field was correct. Plugin never sent the 3 test emails we tried to send. If you want to waste time, as we did, then install, activate and try to send a test email with this plug in.
閱讀全部 61 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈SMTP Mailer〉的開發相關工作。

參與者

〈SMTP Mailer〉外掛目前已有 18 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈SMTP Mailer〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.1.18

  • WordPress 6.8 compatibility update.

1.1.17

  • WordPress 6.7 compatibility update.

1.1.16

  • Removed php_uname from server info.

1.1.15

  • Updated the code for sanitizing password.

1.1.14

  • Added support for the email logger add-on.

1.1.13

  • WordPress 6.5 compatibility update.

1.1.12

  • Added support for the reply-to add-on.

1.1.11

  • WordPress 6.4 compatibility update.

1.1.10

  • Added an option to set the configured from address for all outgoing email messages.

1.1.9

  • Additional check for the settings link.

1.1.8

  • Removed admin notices to avoid confusion since configurations can vary on different servers.

1.1.7

  • WordPress 6.3 compatibility update.

1.1.6

  • WordPress 6.2 compatibility update.

1.1.5

  • Compatibility update for WordPress 6.1.

1.1.4

  • Updated the mail function for WordPress 6.0.

1.1.3

  • Updated the mail function for WordPress 5.9.

1.1.2

  • Fixed an issue that could cause an Undefined variable error if $attachments was not set.

1.1.1

  • WordPress 5.7 compatibility update.

1.1.0

  • The password field can be left empty when updating the settings.

1.0.9

  • Updated the code to be compatible with WordPress 5.5.

1.0.8

  • SMTP Mailer is compatible with WordPress 5.3.

1.0.7

  • SMTP Mailer now checks for a valid nonce when sending a test email.

1.0.6

  • SMTP Mailer no longer shows the saved password in the settings.

1.0.5

  • SMTP Mailer is now compatible with WordPress 4.9.

1.0.4

  • Updated the mail() function by setting its minimum requirements to WordPress 4.8.
  • “phpmailer_init” action hook is now enabled so it can be used by other plugins.

1.0.3

  • Fixed a bug where an apostrophe in the password would cause SMTP authentication failure.

1.0.2

  • SMTP Mailer now supports the “wp_mail_failed” hook which fires after a phpmailerException is caught.
  • Added a new option to bypass this error on some servers where the SSL certificate is not properly configured – Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed.

1.0.1

  • First commit