docs/admin-interface/marketing/mail.md
{% hint style="info" %} Reach Your Audience The Mail feature allows you to send mass emails to different customer segments, affiliates, and newsletter subscribers directly from your OpenCart 4 admin panel. {% endhint %}
The Mail feature in OpenCart 4 enables you to send targeted email campaigns to various segments of your audience. This powerful tool is ideal for marketing campaigns, announcements, promotions, and customer communication. With flexible recipient options and an integrated WYSIWYG editor, you can create professional emails without leaving your admin dashboard.
To access the Mail feature:
{% stepper %} {% step %} Step 1: Configure Sender Settings
Select the From store that will appear as the sender of the email:
This determines which store's email address and name will be used as the sender. {% endstep %}
{% step %} Step 2: Select Recipients
Choose who will receive your email from the To dropdown:
| Recipient Type | Description | Use Case |
|---|---|---|
| All Newsletter Subscribers | Customers who have subscribed to your newsletter | Newsletter campaigns, general announcements |
| All Customers | Every customer in your database | Store-wide announcements, policy changes |
| Customer Group | Customers belonging to a specific group | Targeted promotions (e.g., wholesale customers) |
| Customers | Individual customers selected manually | VIP communications, specific customer follow-ups |
| All Affiliates | Every affiliate in your system | Affiliate program updates, commission announcements |
| Affiliates | Individual affiliates selected manually | Specific affiliate communications |
| Products | Customers who have purchased specific products | Product-specific promotions, update notifications |
When selecting Customer Group, choose the specific group from the dropdown that appears.
When selecting Customers, Affiliates, or Products, use the autocomplete field to search and add specific recipients. {% endstep %}
{% step %} Step 3: Compose Your Email
Fill in the email composition form:
Subject (Required)
Message (Required)
{% step %} Step 4: Send the Email
Click the Send button to start the mailing process:
The From setting determines which store's identity is used:
Before using the Mail feature, ensure your email system is properly configured in System → Settings → Server tab:
| Setting | Description | Recommended Value |
|---|---|---|
| Mail Engine | Method for sending emails | mail (PHP mail()) or smtp |
| SMTP Hostname | SMTP server address | Your email provider's SMTP server |
| SMTP Username | SMTP authentication username | Your email address |
| SMTP Password | SMTP authentication password | Your email password |
| SMTP Port | SMTP server port | 587 (TLS) or 465 (SSL) |
| SMTP Timeout | Connection timeout in seconds | 30 |
Note: For reliable mass email delivery, consider using SMTP with a professional email service.
</details> <details> <summary><strong>Server Requirements</strong></summary>Send regular newsletters to subscribers:
Target customers based on purchase history:
Send different messages to different customer groups:
Keep your affiliate network informed:
Important store announcements:
{% hint style="success" %} Email Strategy 📧
{% hint style="warning" %} Compliance & Delivery ⚠️
{% hint style="info" %} Technical Considerations ⚡
Solution: Check your email configuration in System → Settings → Server tab:
Solution: Improve email deliverability:
Solution: The system sends 10 emails per batch for server stability:
Solution: Some options require data to be available:
Solution: Check your HTML email formatting:
{% hint style="info" %} Performance Considerations ⚡
{% hint style="success" %} Documentation Summary 📋
You've now learned how to:
Next Steps: