[WordPress] 外掛分享: Gnaritas Amazon SES

首頁外掛目錄 › Gnaritas Amazon SES
20+
安裝啟用
★★★★
4.3/5 分(6 則評價)
2340 天前
最後更新
問題解決
WordPress 4.0+ PHP 5.5+ v0.1.3 上架:2017-11-16

內容簡介

此外掛透過Amazon的Simple Email Service (SES)來發送WordPress網站的電子郵件。使用者也可使用Amazon的Simple Notification Service (SNS)來監視退件和投訴通知,以及抑制寄送郵件到已退件或被投訴地址。此外掛還記錄退件和投訴通知,可將保存的數據以CSV格式匯出。

需求

PHP >= 5.5
OpenSSL PHP擴展
Amazon Web Services帳戶

安裝:

將檔案上傳到WordPress插件目錄中。
在插件管理頁面中啟用它。
如“配置”部分所述設置配置。

注意:此插件包括Amazon Web Services SNS Validator v1.4.0和AWS SDK for PHP 3.36.19。 如果您使用其他使用這些AWS庫的插件,可能會與使用這些插件的版本衝突。 不建議與其他使用AWS PHP SDK,SNS Validator或它們的任何依賴項的插件一起使用此插件。

配置
在AWS中:
IAM

此插件需要具有API訪問權限的Identity and Access Management(IAM)用戶,並具有以下權限:

SES權限:

SendRawEmail
SetIdentityNotificationTopic
SetIdentityFeedbackForwardingEnabled
GetIdentityVerificationAttributes

SNS權限:

CreateTopic
DeleteTopic
Subscribe
Unsubscribe

SES

確保您至少有一個經過驗證的“identity”(即電子郵件地址或域),以便通過該地址發送電子郵件。
確保您的帳戶不處於SES“沙箱”中。

在WordPress中:

在“SES Settings”管理頁面(在“Amazon SES”管理菜單下)中輸入以下內容:

寄件人地址:要發送郵件的電子郵件地址。此地址或其域應在Amazon SES中驗證。(預設為WordPress管理員電子郵件。)
寄件人名稱(可選):與寄件人地址關聯的名稱。(WordPress的預設值為“WordPress”。)
主機:用於發送郵件的AWS SMTP端點。此處列出可用的SMTP端點:http://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-connect.html。選擇對應您SES區域的 SMTP 端點。
端口:用於連接到SMTP端點的端口。目前支持的端口包括25、465和587。
Access Key ID,Access Key Secret:用於發送電子郵件的IAM用戶的Access Key ID和Secret Access Key。

注意:不會使用在SES控制面板的“Create My SMTP Credentials”中創建的SMTP憑據。 如果您是使用使用此方式創建的IAM用戶,您應在IAM配置頁面上的“Security credentials”選項卡中為它們創建新的Access Key,並使用該憑據。
安全提示:如果您的WordPress網站不使用https,那麼秘密存取金鑰將會在提交或查看SES設置頁面時容易受到第三方攔截。在發送電子郵件或訪問AWS API時,它不會被公開。

SES區域:您SES帳戶的區域標識符。 可支持的區域列於此處:

外掛標籤

開發者團隊

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

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

原文外掛簡介

This plugin sends WordPress site email through Amazon’s Simple Email Service (SES) and can optionally monitor bounce and complaint notifications through Amazon’s Simple Notification Service (SNS) and suppress sending email to bounced or complained addresses. The plugin also logs bounce and complaint notifications and can export the saved data in CSV format.
Requirements

PHP >= 5.5
OpenSSL PHP extension
Amazon Web Services account

To install:

Upload files to the WordPress plugins directory.
Activate in the plugins admin page.
Set up configuration as described in the “Configuration” section.

Note: This plugin includes Amazon Web Services SNS Validator v1.4.0 and AWS SDK for PHP 3.36.19. If you are using other plugins that use these AWS libraries, these may conflict with the versions in use with those plugins. It is not recommended to use this plugin with other plugins using the AWS PHP SDK, SNS Validator or any of their dependencies.
Configuration
In AWS:
IAM
The plugin requires an Identity and Access Management (IAM) user with API access and the following permissions:

SES permissions:

SendRawEmail
SetIdentityNotificationTopic
SetIdentityFeedbackForwardingEnabled
GetIdentityVerificationAttributes

SNS permissions:

CreateTopic
DeleteTopic
Subscribe
Unsubscribe

SES

Make sure you have at least one verified “identity” (i.e. email address or domain) through which to send email.
Make sure your account is out of the SES “sandbox”.

In WordPress:

Enter the following in “SES Settings” admin page (under the “Amazon SES” admin menu):

From address: The email address to send mail from. This address or its domain should be verified in Amazon SES. (Defaults to WordPress’ admin email.)
From name (optional): The name associated with the from address. (WordPress’ default is “WordPress”.)
Host: The AWS SMTP endpoint through which to send mail. Available SMTP endpoints are listed here: http://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-connect.html. Choose the one for your SES region.
Port: The port on which to connect to the SMTP endpoint. Currently supported ports include 25, 465 and 587.
Access key ID, Access key Secret: The access key ID and secret access key for the IAM user you’re using to send email.

Note: SMTP credentials created using the SES control panel’s “Create My SMTP Credentials” will not work. If you’re using an IAM user that was created this way, you should create a new access key for them in the “Security credentials” tab on their IAM configuration page and use those credentials.
Security note: If your WordPress site doesn’t use https, the secret access key will be vulnerable to interception by third parties when submitting or viewing the SES settings page. It is not exposed when sending email or accessing the AWS API.

SES Region: The identifier for your SES account’s region. Supported regions are listed here: http://docs.aws.amazon.com/general/latest/gr/rande.html#ses_region. Use the value in the “Region” column (e.g. “us-east-1”).

Note: If you are using the plugin to handle bounces and complaints, your Simple Notification Service (SNS) region must be the same as your SES region.

SES Identity Type: Choose “Email” or “Domain”.
Choose whether or not you’d like the plugin to suppress email to bounced or complained recipients

On submission, the plugin will verify your Amazon SES identity and send a test email to the SES simulator. If successful, WordPress will send email through Amazon SES.

If you opted have the plugin suppress email to bounced or complained addresses, bounce and complaint notifications for your SES identity will be handled by the plugin.

If email sending fails unexpectedly, the plugin will stop attempting to send email through SES and revert back to WordPress’ default email handling. This will also stop suppression of email to bounced or complained addresses.

To resume sending through Amazon SES, verify your settings on the settings page and click “Save Changes”. The plugin will attempt to verify your SES identity and send a test email, and if successful, resume sending through SES.

The plugin displays notifications indicating its current email and bounce handling state on its admin pages and on the WordPress admin dashboard.

Sending Test Email
You can send a test email using the current configuration from the WordPress admin panel under “Amazon SES > Test Email”.
SNS Notifications and Bounce/Complaint Handling
If you opt to have the plugin suppress email to bounced or complained addresses, bounce and complaint notifications from Amazon Simple Notification Service (SNS) will be recorded in the WordPress database. You can view the notifications and export them in CSV format in the WordPress admin panel under “Amazon SES > SNS Notifications”.
While the plugin is active and email suppression is in effect, email will be suppressed to addresses associated with any “Complaint” notification or a “Permanent” bounce notification. Bounces of type “Transient” are recorded but will not result in suppression of future email.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon