SMTP Email

Product: Admin Framework Pro

The SMTP Email module improves WordPress email reliability by sending messages through a secure SMTP server instead of the default PHP mail function. This ensures your emails are delivered successfully, reduces the risk of messages going to spam, and gives you full control over sender details, authentication, and logging.

How to use

To enable the SMTP Email Module:

  1. Click on the “Utilities” category
  2. Search or scroll to locate the SMTP Email Module
  3. Click on the switch to enable

What’s next?

This module allows you to configure WordPress to send emails through an SMTP server, which is more reliable than the default PHP mail() function.

1. Configuration

  1. Go to the module settings by clicking the “Settings” tab
  2. Navigate to the “SMTP Settings” tab
  3. Enter your SMTP server details:
    • SMTP Host: Your mail server (e.g., smtp.gmail.com)
    • SMTP Port: Port number (commonly 587 for TLS, 465 for SSL)
    • Encryption: Select the appropriate encryption (TLS/SSL)
    • Authentication: Enter your SMTP username and password

2. Sender Settings

  1. In the “Configuration” tab, set up your sender information:
    • From Name: The name that will appear in the “From” field
    • From Email: The email address that will appear in the “From” field
    • Force From Email/Name: Enable to override all email senders

3. Test Your Configuration

  1. Go to the “Test Email” tab
  2. Enter an email address to send a test message
  3. Click “Send Test Email”
  4. Check the recipient’s inbox for the test email

4. Email Logs

  1. In the “Email Logs” tab, you can:
    • View sent emails with their status
    • Search and filter through the logs
    • Download logs as CSV
    • Clear logs when needed

5. Best Practices

  1. Use Secure Connections: Always use TLS or SSL encryption
  2. Test After Changes: Always send a test email after changing settings
  3. Check Spam Folder: If emails aren’t received, check the spam/junk folder
  4. Keep Logs: Enable email logging for troubleshooting

6. Common SMTP Providers

  • Gmail/Google Workspace:
    • Host: smtp.gmail.com
    • Port: 587 (TLS) or 465 (SSL)
    • Requires App Password if 2FA is enabled
  • Outlook/Office 365:
    • Host: smtp.office365.com
    • Port: 587 (TLS)
  • Yahoo:
    • Host: smtp.mail.yahoo.com
    • Port: 465 (SSL)

7. Troubleshooting

  • Connection Failed:
    • Verify SMTP server and port
    • Check firewall settings
    • Confirm username/password
  • Authentication Failed:
    • Double-check credentials
    • For Gmail, ensure “Less secure app access” is on or use App Password
  • Emails Marked as Spam:
    • Set up SPF, DKIM, and DMARC records
    • Ensure reverse DNS is properly configured

8. Security

  • All SMTP credentials are stored securely in the database
  • Passwords are encrypted
  • API endpoints require proper authentication
  • Logs can be automatically purged based on retention settings

This module is perfect for:

  • Fixing email delivery issues
  • Improving email reliability
  • Debugging email problems
  • Complying with email sending best practices

Feedback submitted