
前言介紹
- 這款 WordPress 外掛「Thanks Mail for Stripe」是 2026-02-14 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2026-02-20,距離現在已有 6 天。
- 外掛最低要求 WordPress 5.0 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
rapls |
外掛標籤
email | stripe | payment | webhook | Notifications |
內容簡介
總結:Thanks Mail for Stripe 是一個輕量級的外掛程式,可以在顧客透過 Stripe 付款連結完成購買後自動發送客製化的感謝郵件。非常適合數位產品銷售、軟體授權和服務業務。
### 問題與答案:
1. 這個外掛程式的主要功能是什麼?
- 答:Thanks Mail for Stripe 可以自動透過 Stripe Webhook 發送客製化的感謝郵件給顧客,在他們完成透過 Stripe 付款連結的購買後。
2. 這個外掛程式是否需要使用外部服務?
- 答:這個外掛程式不需要使用外部服務,直接與 Stripe Webhooks 一同運作。
3. 這個外掛程式可以支援哪些語言?
- 答:支援的語言包括日語(JA)和英語(EN),可以自動偵測顧客使用的語言。
4. 在購買流程中,如何確保郵件的發送過程與資訊安全?
- 答:在購買過程中,每個購買的郵件會經過 Stripe Webhook 發送至 WordPress 網站,並進行驗證簽名來確保安全;同時透過 Plugin 來檢測顧客使用的語言和記錄每筆交易,以防止重複發送郵件。
5. 這個外掛程式適用於哪些使用情境?
- 答:外掛程式適用於數位產品銷售、軟體授權碼配送、服務預訂確認、捐贈謝意訊息等情境,以及任何透過 Stripe 付款連結的結帳場合。
以上是對「Thanks Mail for Stripe」外掛程式介紹的問題與答案摘要。
原文外掛簡介
Thanks Mail for Stripe is a lightweight plugin that automatically sends customized thank-you emails to customers after they complete a purchase through Stripe Payment Links. Perfect for digital product sales, software licensing, and service businesses.
No external services required – works directly with Stripe Webhooks
This plugin receives Stripe webhook events directly and sends emails using WordPress’s built-in mail function. No Zapier, Make, or other third-party automation services needed.
Key Features
Automatic Email Sending – Sends thank-you emails automatically via Stripe Webhook
Multi-language Support – Up to 10 customizable email templates with locale settings
Smart Language Detection – Automatically detects customer language from Payment Link ID or locale
Customizable Templates – Fully customizable email subject and body with placeholders
Custom Sender Settings – Set custom From email address and sender name
Duplicate Prevention – Built-in idempotency prevents sending duplicate emails
Test Email Function – Send test emails to verify your settings before going live
Email Log – View history of sent emails in the admin panel
Secure Webhook Verification – Validates Stripe webhook signatures (HMAC-SHA256)
How It Works
Customer makes a purchase via your Stripe Payment Link
Stripe sends a webhook event to your WordPress site
Plugin verifies the webhook signature for security
Plugin detects customer language based on Payment Link ID
Thank-you email is sent to the customer using wp_mail()
Transaction is logged to prevent duplicate sends on retries
Use Cases
Digital product sales (software, ebooks, courses)
Software license key distribution (manual follow-up)
Service booking confirmations
Donation thank-you messages
Any Stripe Payment Links checkout
Requirements
WordPress 5.0 or higher
PHP 7.4 or higher
Stripe account with Payment Links
SSL certificate (HTTPS) – required for webhooks
SMTP plugin recommended for reliable email delivery
Email Sender Best Practices
Important: Always use your own domain email address as the “From Email” setting.
Good: [email protected], [email protected]
Bad: [email protected], [email protected]
Using Gmail or other free email services as the sender will cause delivery failures due to SPF/DKIM/DMARC authentication. Your server is not authorized to send emails on behalf of Gmail.
You CAN use any email address (including Gmail) for the “Reply-To” setting – this only affects where replies go, not email deliverability.
Recommended SMTP Plugins
For reliable email delivery, we recommend using an SMTP plugin:
WP Mail SMTP
Post SMTP
FluentSMTP
These plugins send emails through a proper SMTP server instead of PHP’s mail() function, improving deliverability.
Test vs Live Mode
Remember to update your settings when switching from test to live mode:
Webhook Signing Secret – Test and Live have different secrets (whsec_…)
Payment Link IDs – Test and Live have different IDs (plink_…)
Webhook Endpoints – Register endpoints in both Test and Live mode in Stripe Dashboard
Security Best Practices
The plugin verifies Stripe webhook signatures using HMAC-SHA256
Webhook requests are validated within a 5-minute tolerance window
Session IDs are stored to prevent duplicate email sends
All settings are properly sanitized and escaped
Available Filter Hooks
The plugin provides filter hooks for customization:
tmfs_email_headers – Modify email headers before sending
tmfs_email_subject – Customize email subject
tmfs_email_body – Customize email body
tmfs_detect_language – Override language detection logic
Example: Add CC to emails
add_filter( 'tmfs_email_headers', function( $headers, $to, $lang, $session_id ) {
$headers[] = 'Cc: [email protected]';
return $headers;
}, 10, 4 );
Example: Custom language detection
add_filter( 'tmfs_detect_language', function( $lang, $session ) {
// Custom logic based on session data
if ( strpos( $session['customer_details']['email'], '.jp' ) !== false ) {
return 'ja';
}
return $lang;
}, 10, 2 );
Database Table
The plugin creates a table {prefix}stm_sent_emails to track sent emails:
id – Auto-increment ID
session_id – Stripe Checkout Session ID (unique)
email – Customer email address
lang – Detected language (ja/en)
product_name – Product name (if available)
amount – Purchase amount
sent_at – Timestamp when email was sent
Troubleshooting Webhook Issues
If webhooks aren’t working, check these common issues:
SSL Certificate – Stripe requires HTTPS for webhooks
Webhook URL – Make sure the URL is correct and accessible
Signing Secret – Verify you’re using the correct secret for test/live mode
Server Firewall – Some hosts block requests from overseas IPs
Security Plugins – May block REST API endpoints
WAF Rules – Server-level WAF may block webhook requests
Check Stripe Dashboard > Developers > Webhooks for detailed error logs.
Data & Privacy
This plugin stores email delivery logs in your WordPress database to prevent duplicate sending and allow administrators to verify delivery history. No data is transmitted to external services by this plugin.
What Data Is Stored
The plugin stores the following data in a custom database table ({prefix}stm_sent_emails):
session_id – Stripe Checkout Session ID (used as unique key for duplicate prevention)
email – Customer email address (to confirm which customer received the email)
lang – Detected language code, ja or en (to record which template was used)
product_name – Product name (reserved for future use)
amount – Purchase amount and currency (for administrator reference)
sent_at – Timestamp when the email was sent
Additionally, plugin settings (webhook secret, email templates, Payment Link IDs, etc.) are stored in the wp_options table under the key stm_settings.
Purpose
Duplicate prevention – Stripe may retry webhook events; the session ID prevents sending the same email twice
Delivery confirmation – Administrators can verify that emails were sent to the correct address
Customer support – Transaction reference for handling customer inquiries
Data Retention
Email logs are stored indefinitely by default
Administrators can manually delete individual records via database access
All data (logs and settings) is automatically removed when uninstalling the plugin via the WordPress admin
External Services
This plugin receives incoming webhook events from Stripe – it does not make outbound API calls to Stripe
No customer data is sent to any third-party service by this plugin
Emails are sent using WordPress’s built-in wp_mail() function (delivery depends on your server or SMTP plugin configuration)
GDPR Considerations
Customer email addresses are stored for the legitimate business purpose of preventing duplicate emails and maintaining delivery records
You should disclose this data storage in your site’s privacy policy
Data can be exported or deleted upon customer request via direct database access
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Thanks Mail for Stripe」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
WP Mail SMTP by WPForms – The Most Popular SMTP and Email Log Plugin 》WordPress Mail SMTP外掛, 如果您的WordPress網站無法正確發送電子郵件,您並不孤單。超過三百萬個網站使用WP Mail SMTP可靠地發送電子郵件。, 我們的目標是...。
MC4WP: Mailchimp for WordPress 》讓訪客訂閱您的電子報應該很容易。透過這款外掛,現在終於可以輕鬆做到了。 這個外掛可幫助您在 Mailchimp 中擴展您的電子郵件列表。您可以使用它來創建外觀...。Easy WP SMTP – WordPress SMTP and Email Logs: Gmail, Office 365, Outlook, Custom SMTP, and more 》您的 WordPress 電子郵件無法正常傳送嗎?, 安裝 Easy WP SMTP,即可解決您的電子郵件傳送問題。, Easy WP SMTP 允許您配置並透過 4 個交易郵件傳送者或 SMTP...。
WP Mail Logging 》WP Mail Logging 是最受歡迎的 WordPress 或 WooCommerce 郵件記錄外掛程式。啟用後立即運作,無需任何設定。, 為什麼要記錄 WordPress 或 WooCommerce 發送...。
Post SMTP – Complete Email Deliverability and SMTP Solution with Email Logs, Alerts, Backup SMTP & Mobile App 》即時演示 | 擴充功能, WordPress郵件SMTP外掛程式, Post SMTP是一款下一代WP郵件SMTP外掛程式,可協助並改善您的WordPress網站郵件可遞送性處理。, 易於使用...。
Mailchimp for WooCommerce 》加入 Mailchimp 的 1,700 萬客戶,這是全球最大的行銷自動化平台,以發展您的電子商務行銷策略。藉由官方 Mailchimp for WooCommerce 整合,您的客戶及其購買...。Creative Mail – Easier WordPress & WooCommerce Email Marketing 》Creative Mail是專門為WordPress和WooCommerce設計的電子郵件外掛。, 我們智能(且超級有趣的)郵件編輯器簡化了郵件營銷活動的創建過程,並將WordPress博客...。
SureMail – SMTP and Email Logs Plugin with Amazon SES, Postmark, and Other Providers 》```html, <!DOCTYPE html>, <html>, <head>, <title>SureMails WordPress 外掛總結</title>, </head>, <body>, ,...。
Site Mailer – SMTP Replacement, Email API Deliverability & Email Log 》總結: 使用 Site Mailer 外掛幫助解決 WordPress 網站無法寄送郵件、郵件進入垃圾郵件中或無法送達的問題。透過此工具,您可以輕鬆提升郵件管理,確保郵件準...。
Manage Notification E-mails 》這個外掛可以讓您開啟或關閉不同的 WordPress 通知電子郵件,例如 WordPress 傳送到管理員和使用者的新使用者和密碼更改通知選項。與許多其他外掛完美結合!,...。
Klaviyo 》Klaviyo 是一個統一的客戶平台,讓您的網上品牌直接擁有您的消費者數據和互動,讓您能夠以規模化的方式將與客戶的交易轉化為有生產力的長期關係。由於 Klaviy...。
Kadence WooCommerce Email Designer 》這個外掛讓你輕鬆自訂 WooCommerce 交易郵件的預設樣板。使用內建的 WordPress 自訂器即可即時視覺化編輯設計。在不編輯程式碼的情況下自訂每個 WooCommerce ...。
Check & Log Email – Easy Email Testing & Mail logging 》需要一個工具,讓你可以輕鬆地記錄和查看 WordPress 發送的所有電子郵件嗎? Check & Log 可能就是此問題的解決方案。, 此 WordPress 外掛可幫助你為審計目的...。
Contact Form 7 Extension For Mailchimp 》WordPress Extension for Mailchimp (Chimpmatic Lite)可將Contact Form 7與Mailchimp Audience集成。使用Mailchimp的最新API自動將Contact Form 7提交的信息...。
Email Log 》Email Log 是一個 WordPress 外掛,可以輕鬆地記錄和查看所有從 WordPress 發送的電子郵件。, 這在調試 WordPress 網站中與電子郵件相關的問題或存儲發送的電...。
