
內容目錄
- 1 內容簡介
- 2 外掛標籤
- 3 開發者團隊
- 4 原文外掛簡介
- 4.1 Available Shortcodes
- 4.2 Content Shortcodes
- 4.3 Utility Shortcodes
- 4.4 Configuration Options
- 4.5 SMTP Configuration
- 4.6 Sending Limits
- 4.7 Sender Information
- 4.8 Email Exceptions
- 4.9 Tracking
- 4.10 Open Tracking
- 4.11 Statistics
- 4.12 Hooks and Filters
- 4.13 Actions
- 4.14 Filters
- 4.15 Security Considerations
- 4.16 Key Developer Files
內容簡介
總結:透過我們直觀的外掛,將您的 WordPress 網站轉換為一個強大的郵件管理中心,不論您是在運行通訊、促銷活動還是客戶維繫,這個工具都能讓您安排郵件 (使用易於使用的排程器提前計劃活動),個性化內容 (使用動態內容字段創建定制消息),追蹤表現 (實時監控開啟率、點擊率和參與度指標),無縫整合 (連接流行郵件服務或使用自己的 SMTP 伺服器),自動化功能 (設置自動回應和滴灌活動以節省時間並增加參與度)。適合博客作者、小型企業和行銷人員使用,這個外掛將簡單性與強大功能結合,以確保您的郵件能投遞並產生影響。立即開始擴大您的受眾!
1. 這個外掛可以將您的 WordPress 網站轉變為一個強大的郵件管理中心。
2. 可安排郵件以提前計劃活動,並具有易於使用的排程器。
3. 能夠個性化內容,創建具有動態內容字段的定制消息。
4. 可追蹤開啟率、點擊率和參與度指標。
5. 提供無縫整合,可連接流行郵件服務或使用自己的 SMTP 伺服器。
6. 具備自動化功能,可設置自動回應和滴灌活動以節省時間並增加參與度。
7. 適合博客作者、小型企業和行銷人員使用,結合了簡單性與強大功能。
8. 這些外部組件也得到特別鳴謝:
- Tooltipster v4.2.8
- Owl Carousel v2.3.4
- Select2 4.0.13
- Trumbowyg v2.27.3
外掛標籤
開發者團隊
原文外掛簡介
Transform your WordPress site into a powerful email management hub with our intuitive plugin. Whether you’re running newsletters, promotional campaigns, or customer outreach, this tool empowers you to Schedule Emails (plan campaigns in advance with an easy-to-use scheduler), Personalize Content (Create tailored messages with dynamic content fields), Track Performance (Monitor open rates, click-through rates, and engagement metrics in real time), Seamless Integration: (Connect with popular email services or use your SMTP server), Automation Features: (Set up automated responses and drip campaigns to save time and boost engagement). Perfect for bloggers, small businesses, and marketers, this plugin combines simplicity with robust functionality to ensure your emails get delivered and make an impact. Start growing your audience today!
Core Features
Email Template Management: Create and manage unlimited email templates using WordPress’s familiar post editor. Each template supports rich HTML content, custom styling, and dynamic shortcodes for personalized messaging.
SMTP Configuration: Full SMTP support with authentication, allowing you to connect to any SMTP server (Gmail, Outlook, custom servers). Configure SMTP host, port, security (TLS/SSL), authentication credentials, and custom sender information. Includes Gmail-specific optimizations for better deliverability.
Email Queue System: Intelligent email queue management that processes emails in controlled batches. Configure sending rates (emails per 10 minutes and daily limits) to prevent server overload and ensure optimal deliverability. Automatic queue pausing when daily limits are reached, with automatic reset after 24 hours.
Scheduled Email Delivery: Schedule emails to be sent at specific times in the future. Perfect for welcome emails, follow-ups, and time-sensitive campaigns. Includes delayed welcome email functionality with configurable delays.
Email Tracking & Analytics: Comprehensive tracking system including:
Open Tracking: Track email opens using invisible tracking pixels. Monitor when recipients open your emails with timestamps.
Click Tracking: Track all link clicks in emails. See which links are clicked most, track unique clicks per user, and analyze click patterns.
Detailed Statistics: View click statistics by URL, total clicks, unique users who clicked, and detailed click history with timestamps and IP addresses.
Email Types & Automation:
Welcome Emails: Automated welcome emails for new users with configurable delays
One-Time Emails: Send emails that are only sent once per recipient
Published Content Emails: Automatically send emails when new content is published. Configure to send notifications about new posts, pages, or custom post types
Coded Emails: Special emails with unique codes (e.g., verification codes)
Password Reset Emails: Customizable password reset emails with branded templates
New User Notifications: Automated emails sent when new users register
WooCommerce Integration: Seamless integration with WooCommerce for e-commerce email automation:
Purchase Emails: Automatically send emails after purchase completion with configurable delays
Abandoned Cart Emails: Detect and send emails to users who abandon their shopping carts. Configurable delay periods (minutes, hours, or days)
Cart Tracking: Monitor cart activity and send targeted recovery emails
Email Distribution Options: Flexible recipient targeting:
Send to all users
Send to specific user roles
Send to individual selected users
Support for custom user queries
Exception Management: Advanced email filtering system:
Exclude specific email domains from receiving emails
Exclude individual email addresses
Perfect for testing environments or excluding internal accounts
Email Records & History: Complete audit trail of all sent emails:
Track every email sent with full details (recipient, subject, content, attachments, timestamps)
View email status (sent, queued, failed)
Detailed error logging for failed sends
Email content stored in both HTML and plain text formats
Server information and IP tracking
Dashboard & Statistics: Comprehensive dashboard providing:
Recent sent emails count (last 7 days)
Pending scheduled emails count
Detailed email history with filtering options
Visual statistics and progress tracking
Email queue status monitoring
Email Templates & Branding: Professional email template system:
Customizable header images
Customizable footer images
Configurable maximum email width
Legal information footer (company name, address)
Custom footer messages
Social media links support
Responsive design for mobile devices
Dynamic Content & Shortcodes: Powerful shortcode system for personalization:
[user-name] – Display recipient’s name
[post-name] – Display post titles with links
[new-contents] – Display recently published content
Support for user data (first name, last name, email, nickname, ID)
Post-specific shortcodes
Custom content filters
Test Email Functionality: Send test emails to verify templates before sending to all recipients. Test emails bypass queue system and restrictions for immediate delivery.
Error Handling & Logging: Robust error management:
Detailed error messages for failed sends
SMTP error reporting
Option to email admin on send failures
Error retry functionality
Comprehensive error logs with timestamps and details
Role-Based Permissions: Fine-grained access control:
Custom capabilities for email management
Role-specific permissions for creating, editing, and sending emails
Taxonomy capabilities for email categories
Secure permission system following WordPress standards
Email Queue Management: Advanced queue control:
View and manage pending emails
Pause/resume queue functionality
Progress tracking for bulk sends
Automatic cleanup of processed items
Queue status indicators
Welcome Email Management: Dedicated interface for managing welcome emails:
View pending welcome email registrations
Manage scheduled welcome emails
Cleanup tools for old or stuck registrations
Unified management interface
Notifications System: Built-in notification management:
User notification preferences
Subscription management links in emails
Unsubscribe functionality
Integration with USERSPN plugin for enhanced user management
Multilingual Support: Fully translation-ready:
Translation files included for Spanish (ES), Catalan (CA), Basque (EU), Galician (GL), Italian (IT), and Portuguese (PT)
Uses WordPress i18n standards
Easy to translate with Loco Translate or similar tools
Security Features:
Nonce verification for all AJAX requests
Input sanitization and validation
KSES filtering for HTML content
Secure SMTP password storage
Permission checks throughout
Cron Job Management: Automated background processing:
Daily cleanup tasks (removed users, old logs)
Every 10 minutes email queue processing
Weekly maintenance tasks
Scheduled email processing
WooCommerce automated email processing
Form Builder Integration: Advanced form building capabilities:
Multiple input types (text, email, select, textarea, file uploads, images, videos, audio)
Conditional fields
Multi-field groups
Password strength checker
Range inputs with visual feedback
Star rating inputs
Public-Facing Features:
Email subscription management popups
Unsubscribe functionality
Click tracking redirects
Open tracking endpoints
Public shortcodes for notifications
Developer-Friendly:
Well-structured codebase following WordPress coding standards
Extensible with filters and hooks
Custom post types for emails and records
Custom taxonomies for organization
REST API endpoints for tracking
Perfect for bloggers, small businesses, e-commerce stores, and marketers who need a comprehensive email management solution without the complexity of external services. The plugin integrates seamlessly with WordPress and provides all the tools you need to create, send, track, and manage your email campaigns effectively.
Credits
This plugin stands on the shoulders of giants
Tooltipster v4.2.8 – A rockin’ custom tooltip jQuery plugin
Developed by Caleb Jacob and Louis Ameline
MIT license
https://calebjacob.github.io/tooltipster/
https://github.com/calebjacob/tooltipster/blob/master/dist/js/tooltipster.main.js
https://github.com/calebjacob/tooltipster/blob/master/dist/css/tooltipster.main.css
Owl Carousel v2.3.4
Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
Copyright 2013-2018 David Deutsch
https://owlcarousel2.github.io/OwlCarousel2/
https://github.com/OwlCarousel2/OwlCarousel2/blob/develop/dist/owl.carousel.js
Trumbowyg v2.27.3 – A lightweight WYSIWYG editor
alex-d.github.io/Trumbowyg/
License MIT – Author : Alexandre Demode (Alex-D)
https://github.com/Alex-D/Trumbowyg/blob/develop/src/ui/sass/trumbowyg.scss
https://github.com/Alex-D/Trumbowyg/blob/develop/src/ui/sass/trumbowyg.scss
https://github.com/Alex-D/Trumbowyg/blob/develop/src/trumbowyg.js
Developers
This section provides comprehensive documentation for developers who want to integrate or extend the MAILPN plugin functionality.
Plugin Structure
Main File: mailpn.php
Version: 1.0.19
Constants: MAILPN_VERSION, MAILPN_DIR, MAILPN_URL, MAILPN_CPTS
Custom Post Types: mailpn_mail (emails), mailpn_rec (records)
Sending Emails Programmatically
Using Shortcode (Recommended)
The primary method to send emails is through the [mailpn-sender] shortcode:
`
do_shortcode(‘[mailpn-sender
mailpn_type=”email_welcome”
mailpn_user_to=”1″
mailpn_subject=”Email Subject”
mailpn_id=”123″
mailpn_once=”1″
]Email content here[/mailpn-sender]’);
`
Parameters:
* mailpn_user_to (required): User ID or email address
* mailpn_id (optional): Post ID of type mailpn_mail
* mailpn_type (optional): Email type (email_welcome, email_published_content, email_coded, etc.)
* mailpn_subject (optional): Email subject line
* mailpn_once (optional): Set to 1 to send only once per user
* post_id (optional): Related post ID
* post_parent_id (optional): Parent post ID
Using PHP Class Directly
`
$mailing = new MAILPN_Mailing();
$result = $mailing->mailpn_sender([
‘mailpn_user_to’ => 1,
‘mailpn_id’ => 123,
‘mailpn_type’ => ’email_welcome’,
‘mailpn_subject’ => ‘Welcome’,
‘mailpn_once’ => 1
], ‘Email content’);
Available Shortcodes
Content Shortcodes
*[mailpn-text query=”addressee_name” user_id=”1″]- Display user data (name, email, ID, nickname)
*[user-name]- Display recipient's name
*[post-name]- Display post title with link
*[new-contents]- Display recently published content
*[mailpn-contents post_id=”123″]- Display content based on email type
Utility Shortcodes
*[mailpn-mail]- Render complete email
*[mailpn-call-to-action]- Call-to-action button
*[mailpn-notifications]- Notification system
*[mailpn-notifications-counter]- Notification counter
Configuration Options
Access plugin settings using WordPressget_option():
SMTP Configuration
*mailpn_smtp_enabled- Enable/disable SMTP ('on'/'off')
*mailpn_smtp_wp_native_emails- Use SMTP for native WordPress emails ('on'/'off'). When on, password recovery, new user notification, comment notifications, admin notifications and any other wp_mail() call use SMTP.
*mailpn_smtp_host- SMTP host address
*mailpn_smtp_port- SMTP port number
*mailpn_smtp_secure- Security type ('tls', 'ssl', or 'none')
*mailpn_smtp_username- SMTP username
*mailpn_smtp_password- SMTP password
Sending Limits
*mailpn_sent_every_ten_minutes- Emails per 10 minutes (default: 5)
*mailpn_sent_every_day- Daily email limit (default: 500)
Sender Information
*mailpn_from_name- Sender name
*mailpn_from_email- Sender email address
Email Exceptions
*mailpn_exception_emails- Enable exception system ('on'/'off')
*mailpn_exception_emails_domains- Exclude email domains
*mailpn_exception_emails_addresses- Exclude specific email addresses
Tracking
*mailpn_click_tracking- Enable click tracking ('on'/'off')
*mailpn_open_tracking` – Enable open tracking (‘on’/’off’)
Email Queue Management
Queue System
// Get current queue
$queue = get_option('mailpn_queue'); // Array: [mail_id => [user_ids]]
// Process queue manually
$mailing = new MAILPN_Mailing();
$mailing->mailpn_queue_process();
// Check queue status
$paused = get_option('mailpn_queue_paused'); // 'on' if paused
`
Adding Emails to Queue
$mail_id = 123;
$users = get_users([‘fields’ => ‘ids’]);
$queue = get_option(‘mailpn_queue’, []);
foreach ($users as $user_id) {
$queue[$mail_id][] = $user_id;
}
update_option(‘mailpn_queue’, $queue);
// Queue is processed automatically via cron every 10 minutes
`
Tracking and Analytics
Click Tracking
// Automatically replace links with tracking (built-in)
// Or manually:
$content = MAILPN_Click_Tracking::replace_links($content, $mail_id, $user_id);
// Track click manually
MAILPN_Click_Tracking::track_click($mail_id, $user_id, $url);
`
Open Tracking
Open tracking is automatic via tracking pixel. Data is stored in `mailpn_rec` custom post type.
Statistics
Access statistics via AJAX action: `wp_ajax_mailpn_get_statistics` (requires proper permissions)
Hooks and Filters
Actions
* `mailpn_form_save` - Fired when forms are saved
* `mailpn_cron_daily` - Daily cron task
* `mailpn_cron_ten_minutes` - Every 10 minutes cron task
* `mailpn_cron_weekly` - Weekly cron task
Filters
* `wp_mail_from` - Customize sender email
* `wp_mail_from_name` - Customize sender name
* `retrieve_password_message` - Customize password reset email
* `wp_new_user_notification_email` - Customize new user email
WooCommerce Integration
The plugin automatically integrates with WooCommerce if active:
* Purchase completion emails
* Abandoned cart emails
* Cart activity tracking
Example Usage
Send Welcome Email
$user_id = 1;
$subject = ‘Welcome to our site’;
$content = ‘
Welcome!
Thanks for registering.
‘;
do_shortcode(‘[mailpn-sender
mailpn_type=”email_welcome”
mailpn_user_to=”‘ . $user_id . ‘”
mailpn_subject=”‘ . esc_attr($subject) . ‘”
mailpn_once=”1″
]’ . $content . ‘[/mailpn-sender]’);
`
Send Personalized Email
“`
$user_id = 1;
$mail_id = 123;
do_shortcode(‘[mailpn-sender
mailpn_user_to=”‘ . $user_id . ‘”
mailpn_id=”‘ . $mail_id . ‘”
mailpn_subject=”Important Notification”
]Hello [user-name], this is a personalized email.[/mailpn-sender]’);
Security Considerations
* All AJAX requests require nonce verification
* Input sanitization viaMAILPN_Forms::mailpn_sanitizer()* KSES filtering for HTML content
* User permission checks throughout
* Secure SMTP password storage
Key Developer Files
*includes/class-mailpn.php- Main plugin class
*includes/class-mailpn-mailing.php- Email sending functionality
*includes/class-mailpn-settings.php- Settings management
*includes/class-mailpn-ajax.php- AJAX handlers
*includes/class-mailpn-cron.php- Scheduled tasks
*includes/class-mailpn-click-tracking.php` – Click tracking
Requirements
WordPress 3.0 or higher
PHP 7.2 or higher
WordPress cron must be functional for queue processing
Support
For developer support, visit the plugin’s support forum or contact: [email protected]
