Email System¶
The Preads Platform incorporates a powerful, enterprise-grade email engine designed to handle all aspects of network communication. From automated system notifications to large-scale marketing campaigns, the platform provides a centralized interface for managing deliverability, templates, and auditing.
⚙️ Gateway Configuration¶
Manage your email delivery settings from Admin Panel → Settings → Email Configuration.
Supported Drivers¶
The platform utilizes Laravel's robust mail subsystem, supporting multiple drivers:
- SMTP: The standard for most external providers (Google Workspace, Microsoft 365, etc.).
- Mailgun / Postmark / SES: High-volume API-based deliverability services.
- Log: For development environments (writes emails to local logs instead of sending).
Security & Encryption¶
- Encrypted Credentials: For maximum security, sensitive values like
SMTP_PASSWORDare encrypted before being stored in the database. - Test Utility: Before going live, use the Send Test Email feature to verify your connection and ensure your server's IP isn't blacklisted.
📄 Template Management¶
The template engine allows you to customize the content and branding of every email sent by the platform. Located in Admin Panel → Settings → Email Templates.
Template Categories¶
- System Templates (Protected): Critical notifications like Password Reset, Email Verification, and Admin Alerts. These are protected from deletion to ensure platform stability.
- Transactional Templates: Automated messages triggered by user actions, such as Payment Approved, New Lead Generated, or App Rejected.
- Marketing Templates: Custom-designed templates for bulk communication and network updates.
The "Master Template" Concept¶
To maintain brand consistency, the platform uses a Master Template (slug: master). All other templates are automatically "wrapped" inside this master structure, ensuring your logo, header, and footer remain identical across all communications.
📧 Bulk Email & Marketing¶
The platform includes a specialized tool for reaching your entire publisher network or specific segments.
Campaign Management¶
- Background Processing: Bulk emails are dispatched via Background Jobs (
SendBulkEmailJob). This ensures the Admin Panel remains responsive even when sending to thousands of publishers. - Queue Synergy: The system paces delivery to prevent your SMTP server from being flagged for spamming.
Global Variables¶
You can use dynamic placeholders in any template to personalize messages.
- Standard Variables:
{name},{email},{site_name},{year}. - Contextual Variables:
{amount},{transaction_id},{approval_date}(validated per-template).
🛡️ Delivery Logs & Auditing¶
Every email attempt is recorded in the Email Logs for transparency and troubleshooting.
- Status Tracking: Quickly identify if an email was
SentorFailed. - Error Reporting: If an email fails (e.g., due to invalid SMTP credentials), the platform captures the raw error message from the mailer, allowing you to debug instantly.
- Preview Mode: View the exact HTML content of any previously sent email to verify what was delivered to the recipient.