跳至主要內容
WordPress.org

Taiwan 正體中文

  • 佈景主題目錄
  • 外掛目錄
  • 最新消息
  • 技術支援
  • 關於我們
  • 團隊
  • 取得 WordPress
取得 WordPress
WordPress.org

Plugin Directory

Simple Newsletter Signup for Mailgun

  • 提交外掛
  • 我的最愛
  • 登入
  • 提交外掛
  • 我的最愛
  • 登入

Simple Newsletter Signup for Mailgun

由 unfinishedman 開發
下載
  • 詳細資料
  • 使用者評論
  • 安裝方式
  • 開發資訊
技術支援

外掛說明

Simple Newsletter Signup for Mailgun, crafted by the team at Unfinished Man, allows you to add a newsletter signup form to your WordPress site via widget or shortcode. It connects directly to your Mailgun mailing lists for subscribing/unsubscribing users.

Features

  • Integrated Subscribe/Unsubscribe: Users can subscribe and unsubscribe using the same form
  • Widget Support: Add to sidebars with customizable title and intro text
  • Shortcode Support: Embed via [sns_newslettersignup title="Your Title"]
  • Mailgun Integration: Direct API integration with your Mailgun account
  • reCAPTCHA v3: Optional bot protection with configurable score threshold
  • AJAX-Powered: Seamless form submissions without page reload
  • Rate Limiting: Prevents spam with 5 attempts per 15 minutes per IP
  • Custom CSS Editor: Built-in CSS editor with syntax highlighting for easy styling
  • Responsive Design: Mobile-friendly forms that work on all devices
  • Dark Mode Support: Automatic styling for dark mode preferences
  • Accessibility: WCAG compliant with proper ARIA labels and keyboard navigation
  • Developer Friendly: Custom hooks and events for advanced customization
  • Translation Ready: Fully internationalized and ready for translation

Requirements

  • WordPress 5.0 or higher
  • PHP 7.4 or higher
  • Mailgun account with API access
  • (Optional) Google reCAPTCHA v3 keys

Shortcode Attributes

  • title – Form title (default: “Newsletter Signup”)
  • show_name – Show name field: true/false (default: true)
  • show_help_text – Show help text: true/false (default: true)

Example: [sns_newslettersignup title="Join Our Newsletter" show_name="false"]

Developer Hooks

JavaScript Events:
* sns:success – Triggered on successful submission
* sns:error – Triggered on error
* sns:ajax_error – Triggered on AJAX error
* sns:recaptcha_error – Triggered on reCAPTCHA error

Support

For bugs or feature requests:
* WordPress Support Forum
* Visit Unfinished Man

Privacy Policy

This plugin does not collect or store any personal data locally. All email addresses and names are sent directly to Mailgun via their API. Please review Mailgun’s privacy policy and ensure your own privacy policy covers newsletter signups.

Credits

Created by the team at Unfinished Man.

License

This plugin is licensed under the GNU General Public License version 2 or later (GPLv2+). You are free to use, modify, and distribute this plugin under the terms of the GPL. For more details, see the License URI.

安裝方式

  1. Upload the plugin files to /wp-content/plugins/simple-newsletter-signup/ or install through the WordPress plugins screen
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to Settings > SNS Settings to configure:
    • Mailgun API Key, Domain, and Mailing List
    • Optional reCAPTCHA v3 keys for bot protection
    • Custom CSS for styling (optional)
  4. Add the widget to sidebars via Appearance > Widgets, or use the shortcode in posts/pages

Getting Mailgun Credentials

  1. Sign up at mailgun.com
  2. Add and verify your domain
  3. Create a mailing list
  4. Get your API key from the dashboard
  5. Enter these details in the plugin settings

Getting reCAPTCHA Keys

  1. Visit Google reCAPTCHA Admin
  2. Register a new site with reCAPTCHA v3
  3. Add your domain
  4. Copy the site key and secret key
  5. Enter them in the plugin settings

常見問題集

How do I get Mailgun API credentials?

Sign up at mailgun.com, create a domain and mailing list, then grab your API key from the dashboard.

Does it handle unsubscribes?

Yes! Users can resubmit their email to unsubscribe if they’re already subscribed.

Can I customize the form?

Yes! You can use the built-in CSS editor in Settings > SNS Settings, customize via your theme’s CSS, or use the widget/shortcode attributes to show/hide fields.

What if reCAPTCHA fails?

Check your keys at Google reCAPTCHA. You can adjust the score threshold in the plugin settings (default is 0.5).

How does rate limiting work?

The plugin limits each IP address to 5 submission attempts per 15 minutes to prevent spam and abuse.

Is it GDPR compliant?

The plugin itself doesn’t store personal data. However, you should ensure your Mailgun account and privacy policy comply with GDPR requirements.

Can I use it with other email services?

Currently, the plugin only supports Mailgun. Support for other services may be added in future versions.

Does it work with page builders?

Yes! Use the shortcode in any page builder that supports WordPress shortcodes.

How do I style the form?

Three ways:
1. Use the built-in CSS editor in Settings > SNS Settings (includes syntax highlighting)
2. Add CSS to your theme’s stylesheet
3. Use a custom CSS plugin

The settings page includes helpful CSS examples and a complete selector reference.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Simple Newsletter Signup for Mailgun〉的開發相關工作。

參與者
  • unfinishedman

將〈Simple Newsletter Signup for Mailgun〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.3 (2025-01-XX)

  • Major refactor with improved code organization
  • Added proper OOP structure with separate classes
  • Improved security with rate limiting (5 attempts per 15 minutes)
  • Fixed JavaScript bug with reCAPTCHA integration
  • Added custom CSS editor with CodeMirror syntax highlighting
  • Added CSS styling for better user experience
  • Added dark mode support
  • Improved error handling and logging
  • Fixed text domain consistency (simple-newsletter-signup-for-mailgun)
  • Added translation support (internationalization)
  • Added accessibility improvements (ARIA labels, keyboard navigation)
  • Added custom JavaScript events for developers
  • Better mobile responsiveness
  • Added configurable reCAPTCHA score threshold
  • Improved admin interface with helpful resources and CSS examples
  • Added plugin action links (Settings link on plugins page)
  • Better code documentation
  • Performance improvements
  • Added proper activation/deactivation hooks
  • Improved sanitization and validation
  • Full WordPress Coding Standards (WPCS) compliance
  • Better debugging with wp_json_encode() logging

1.2

  • Security fixes: ESC output, isset checks, unslashing, sanitized settings
  • Button text changed to “Subscribe” with clearer help text
  • Fixed settings page display issues

1.1

  • Added reCAPTCHA v3 support
  • Updated widget with intro text field
  • Integrated unsubscribe functionality

1.0

  • Initial release with Mailgun integration, widget, and shortcode

中繼資料

  • 版本 1.3
  • 最後更新 10 個月前
  • 啟用安裝數 少於 10 次
  • WordPress 版本需求 5.0 或更新版本
  • 已測試相容的 WordPress 版本 6.8.8
  • PHP 版本需求 7.4 或更新版本
  • 語言
    English (US)
  • 標籤:
    emailmailgunnewslettersignupsubscription
  • 進階檢視

評分

這個項目尚無任何評論記錄。

撰寫評分

查看全部使用者評論

參與者

  • unfinishedman

技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

檢視技術支援論壇

  • 關於我們
  • 最新消息
  • 主機代管
  • 隱私權
  • 展示網站
  • 佈景主題目錄
  • 外掛目錄
  • 區塊版面配置目錄
  • Learn
  • 技術支援
  • 開發者資源
  • WordPress.tv ↗
  • 共同參與
  • 活動
  • 贊助基金會 ↗
  • Swag ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Taiwan 正體中文

  • 查看我們的 X (之前的 Twitter) 帳號
  • 造訪我們的 Bluesky 帳號
  • 造訪我們的 Mastodon 帳號
  • 造訪我們的 Threads 帳號
  • 造訪我們的 Facebook 粉絲專頁
  • Visit our Instagram account
  • Visit our LinkedIn account
  • 造訪我們的 TikTok 帳號
  • Visit our YouTube channel
  • 造訪我們的 Tumblr 帳號
程式碼,如詩
The WordPress® trademark is the intellectual property of the WordPress Foundation.