Email Configuration Guide
Overview
Email configuration is a crucial part of CloudOnex Business Suite, enabling the system to send invoices, notifications, password resets, and other important communications. This guide covers all aspects of email configuration and troubleshooting.
Email Drivers
CloudOnex Business Suite supports multiple email sending methods to accommodate different hosting environments and requirements.
1. PHP Mail
The simplest configuration using the PHP mail()
function.
Configuration Steps:
- Select "PHP Mail" from the "Send Email Using" dropdown
- Enter your system email address
- Enter your sender name
- Save settings
Note: PHP Mail is not recommended for production use as emails may be marked as spam. Use SMTP instead for better deliverability.
2. SMTP Configuration
SMTP is the recommended method for sending emails reliably.
Required Information:
- SMTP Host (e.g., smtp.gmail.com, smtp.office365.com)
- SMTP Username
- SMTP Password
- SMTP Port (common ports: 25, 465, 587)
- Security Protocol (SSL/TLS)
Configuration Steps:
- Select "SMTP" from the "Send Email Using" dropdown
- Enter your System Email Address
- Enter your Default Sender Name
- Fill in the SMTP details:
- Host address
- Username
- Password
- Port number
- Select security protocol (SSL/TLS)
- Click Save
3. Mailgun Integration
For high-volume email sending, Mailgun offers reliable delivery.
Prerequisites:
- Active Mailgun account
- Domain verified with Mailgun
- API key from Mailgun
Configuration Steps:
- Select "Mailgun" from the "Send Email Using" dropdown
- Enter your Mailgun domain
- Enter your Mailgun API key
- Save settings
Testing Email Configuration
After setting up your email configuration:
- Go to Email Settings
- Enter a test email address
- Click "Send Test Email"
- Check the recipient inbox
- Verify email logs in System → Email Log
Troubleshooting
Common Issues and Solutions
1. Connection Timeout
SMTP ERROR: Failed to connect to server: Connection timed out (110)
Solutions:
- Check if SMTP port is blocked by firewall
- Verify correct port number
- Ensure server can reach SMTP host
2. Authentication Failed
SMTP ERROR: Authentication failed
Solutions:
- Double-check username and password
- For Gmail: Enable "Less secure app access" or use App Password
- Verify correct SMTP security protocol
3. Debug Mode for Detailed Errors
To enable detailed error reporting:
- Edit
system/config.php
- Change APP_STAGE from 'Live' to 'Dev'
- Retry the email operation
- Check error messages in the browser
Email Templates
CloudOnex Business Suite includes customizable email templates for:
- Invoice notifications
- Quote notifications
- Payment receipts
- Password resets
- System notifications
Available Template Variables
Variable | Description |
---|---|
{name} | Customer name |
{business_name} | Your company name |
{invoice_url} | Invoice preview URL |
{invoice_id} | Invoice ID |
{invoice_status} | Invoice status |
{invoice_amount_paid} | Amount paid |
{invoice_due_amount} | Amount due |
{invoice_date} | Invoice date |