How to Setup SMTP Email

Configure custom SMTP settings to guarantee email delivery, manage multiple mail servers, and bypass standard hosting restrictions.

10 min read·Updated May 30, 2026
How to Setup SMTP Email
DELIVERY OPTIMIZATIONBUSINESS IMPACT & ROI

99.5% Inbox Deliverability: Bypassing default PHP webmail blocks and routing transactions through custom SMTP raises inbox placement to 99.5%, completely preventing invoice receipts and magic links from routing to the Spam folder. Instant Transaction Validation: Outbound mail server integrations deliver security validation PINs and WooCommerce invoices in under 3 seconds, preventing checkout customer churn by 15% caused by delayed mail dispatches.

Delivery Bottleneck Notice Sending emails from WordPress using the default PHP wp_mail() or PHPMailer functions is highly prone to delivery failure. Default server configurations are frequently blocked or restricted by hosting providers to prevent spam, resulting in transactional emails, dual-factor authentication OTP codes, and WooCommerce receipts routing directly to recipients' spam folders or failing to send.

Activating and configuring custom SMTP (Simple Mail Transfer Protocol) settings ensures that all system-generated emails are routed through a trusted mail server, maximizing deliverability and brand reputation.


The SMTP Accounts Dashboard Table

SMTP Accounts Dashboard Table
SMTP Dashboard Table

The central panel listing all configured outgoing email servers, statuses, and default settings.

Keywords: smtp accounts table, outgoing mail server, set default smtp

The SMTP Accounts dashboard under Wawp > Senders > SMTP Mail Server allows managing multiple outgoing email server configurations within a single workspace.

1. Default Sender Switching

  • ✓ Selected (Active Badge): Indicates the server configuration that is currently assigned as the default outbound mailer.
  • Set Default (Action Button): Toggles a selected mail server as the global default outbound sender. When clicked, Wawp updates the database routing to process all subsequent system dispatches through this profile.

2. Account Name & Details

  • Displays your custom friendly name for identification.
  • Underneath the friendly name, Custom SMTP connections display the outgoing host address and port in monospace font (e.g., smtp.gmail.com:587).

3. Provider Type

  • Shows the detected provider name along with its brand logo (e.g., Gmail, SendGrid, Zoho, Hostinger, WordPress).

4. Server Status

  • ✓ Active (Green Check): The server has successfully passed connection handshake validation.
  • ◷ Pending Setup (Amber Clock): The server configuration has been entered but has not completed diagnostic validation.

5. Row Actions

  • Edit & Test: Launches the 3-Step Setup Sheet Wizard with all previously saved configurations populated.
  • Delete (Trash Icon): Removes the SMTP account profile from the database. A confirmation dialog appears to prevent accidental deletions.

The 3-Step Setup Sheet Wizard

Adding a new mail server or editing an existing one opens a slide-out setup sheet that guides you through three distinct linear steps:

Step 1: Choose Delivery Method & Management

Provider Selection screen in Wawp SMTP wizard
Choose Delivery Method

Select whether to send via the local WordPress PHPMailer or a custom SMTP email provider.

Keywords: delivery method, select mailer, wordpress phpmail, custom smtp
  1. Provider Selection: Select your mailer method:
    • WordPress (PHPMailer): Uses your web server's native PHP mail configuration. Simple but susceptible to hosting provider limits.
    • Custom SMTP: Outsources delivery to any professional third-party email provider or private mail server.
  2. Account Friendly Name: Enter an identifier (e.g., "Sales Support SMTP", "Transaction Alerts"). Wawp automatically pre-populates this field with {ProviderName} Sender until manually adjusted.
Account Friendly Name input field
Friendly Name

Enter a friendly custom name to distinguish between supporting email channels inside your dashboard.

Keywords: account friendly name, connection identifier, supports labels

Step 2: Configuration Credentials & Presets

This step configures connection endpoints, access privileges, and public headers.

1. Quick-Fill Provider Presets (Custom SMTP Only)
Quick-Fill Provider presets directory
Quick-Fill Provider Presets

Search and click provider presets to automatically configure hostnames, ports, and encryption type.

Keywords: smtp provider presets, quick fill host details, gmail hostinger settings

Wawp includes a searchable directory of verified SMTP providers. Typing your provider's name (e.g., Gmail, Hostinger, SendGrid) filters the directory:

  • Categories: Presets are structured into Popular, Transactional, Hosting, Enterprise, and Regional / ISP.
  • Auto-Fill Functionality: Clicking a provider button automatically inputs the correct Host, Port, Encryption type (SSL/TLS/None), and Authentication settings.
  • Context Hints: A lightbulb notice displays specific configuration instructions for the selected preset (e.g., instructions on generating App Passwords).
2. Connection Credentials Form
Connection Credentials setup form
SMTP Credentials

Enter your mail server hostname, port, encryption protocol (SSL/TLS), and access authentication credentials.

Keywords: smtp host, login credentials, usernames passwords settings
  • SMTP Host: The outgoing mail server address.
  • Port: The port matching your provider's protocol (e.g., 587 for TLS, 465 for SSL, 25 or 2525).
  • Encryption: Select from None, SSL, or TLS protocols.
  • Authentication: A toggle switch to require login credentials:
    • Username: The verified mailbox email address or designated API username.
    • Password: The password, API secret key, or secure App Password.
  • System Integration Status: For the WordPress mailer option, Wawp displays a blue informational card indicating that the plugin will hook directly into your local PHP configuration.
3. Public Identity
From Email and From Name header inputs
Public Identity Header

Configure outbound email headers including From Email address and From Name visible in recipient inboxes.

Keywords: from email header, from name label, email display properties
  • From Email: The verified email address visible as the sender of outgoing mail.
  • From Name: The display name shown in user inboxes (e.g., "Wawp Customer Service").

Step 3: Diagnostic Check (Testing)

Diagnostic Check testing dashboard card
Diagnostic Check

Run real-time API socket verifications and send test emails to guarantee delivery configurations.

Keywords: smtp testing checks, verify server integration, dispatch test payload

Before finalizing configurations, perform diagnostic checks to verify routing settings. Wawp separates these tests into two dedicated cards:

  1. Server Integration (Verification Check): Clicking Run Server Check initiates a connection handshake between your WordPress server and your SMTP provider using backend REST validator APIs. This verifies that security certificates and ports are open and responding.
Server Integration validation socket handshake
Server Integration Check

Socket check to verify TLS handshakes, certificate bindings, and port access.

Keywords: rest connection handshake, server check, socket validator check
  1. Direct Mail Test (Outbound Delivery): Input a recipient address and click the Send button. Wawp dispatches a physical diagnostic email to verify that incoming emails bypass spam filters and deliver successfully.
Direct Mail Test outbound email dispatch
Direct Mail Test

Send test payloads directly to recipient addresses to verify inbox delivery.

Keywords: test mailer dispatch, direct test delivery, mail test success check

Configuration Warnings Successful completion of a diagnostic check is required. Accounts with failed connections remain in Pending Setup status and will not route system emails correctly. Performing a successful connection handshake and sending a diagnostic test email is highly recommended before setting the account live.


Retrieving SMTP Details from Hosting Panels

If you are using email accounts hosted on your own server, you can find the custom SMTP credentials directly in your hosting dashboard:

1. cPanel

cPanel email client configuration settings
cPanel Configuration

Locate secure SSL/TLS server settings in cPanel email accounts dashboard.

Keywords: cpanel mail setting, secure incoming ssl, outgoing hostname
  1. Log in to your hosting cPanel dashboard.
  2. Under the Email section, click on Email Accounts.
  3. Locate the email address you wish to connect and click the Connect Devices button next to it.
  4. Locate the Secure SSL/TLS Settings (Recommended) section.
  5. Copy the following parameters into the Wawp setup sheet:
    • SMTP Host: Use the hostname shown under Outgoing Server (usually mail.yourdomain.com).
    • Port: Use 465 (SSL) or 587 (TLS).
    • Username: Your full email address (e.g., user@yourdomain.com).
    • Password: The password designated for that specific email mailbox.

2. aaPanel

aaPanel Mail Server plugin configuration page
aaPanel Mail Settings

Setup aaPanel Mail Server plugin domains, verify SSL certifications, and copy credentials.

Keywords: aapanel mail server, hostname settings ssl, mailbox credentials
  1. Log in to your aaPanel admin panel.
  2. Select App Store or Mail Server from the navigation menu (ensure the official Mail Server plugin is installed).
  3. In the Mail Server settings, click on Domains to ensure your custom hostname (e.g., mail.yourdomain.com) is correctly mapped with a valid SSL/TLS certificate.
  4. Under the Emails tab, verify the mailbox credentials.
  5. In Wawp, use the following configuration:
    • SMTP Host: Your aaPanel Mail Server domain (e.g., mail.yourdomain.com).
    • Port: Use 465 with SSL encryption, or 587 with TLS encryption.
    • Username: The full email address created in aaPanel.
    • Password: The password you designated during aaPanel mailbox creation.

3. Plesk

Plesk mail server connection settings
Plesk Mail Server

Retrieve secure outbound parameters from the Plesk email configuration panel.

Keywords: plesk manual configuration, mail connection, plesk hostnames ports
  1. Log in to your Plesk server control panel.
  2. Navigate to the Mail page and click on the Mail Accounts tab.
  3. Select your email address and click on the information icon next to it or locate Manual Setup connection details.
  4. Retrieve the secure connection parameters:
    • SMTP Host: The mail server host provided by Plesk (usually mail.yourdomain.com or the Plesk server domain).
    • Port: Use 465 (SSL/TLS) or 587 (STARTTLS).
    • Username: Your complete email address.
    • Password: Your email mailbox password.

4. CyberPanel

CyberPanel secure MailServer SSL configuration
CyberPanel Settings

Verify issued MailServer SSL keys and find CyberPanel SMTP details.

Keywords: cyberpanel mail ssl, cyberpanel mail domains, smtp usernames passwords
  1. Log in to your CyberPanel control panel.
  2. Click on Email in the sidebar, then select List Emails.
  3. Locate the email account to view its details.
  4. Note: Go to SSL > MailServer SSL from the sidebar and verify that SSL is issued for mail.yourdomain.com to prevent connection handshake failures.
  5. In Wawp, use the following details:
    • SMTP Host: mail.yourdomain.com
    • Port: Use 465 (SSL) or 587 (TLS).
    • Username: The full email address.
    • Password: The email mailbox password.

Expert Settings & Troubleshooting

1. Google Workspace & Gmail

Google Workspace 2FA App Passwords configuration
Google Workspace Settings

Generate unique 16-character App Passwords to bypass Gmail security controls.

Keywords: gmail app password, workspace smtp authentication, google security keys

Google App Password Requirement Standard Google account passwords will fail due to Google security policies. You must enable Two-Factor Authentication (2FA) in your Google Account Security settings, then generate a unique 16-character App Password to paste into Wawp's password field.

  • SMTP Host: smtp.gmail.com using Port 587 (TLS) or Port 465 (SSL).

2. Microsoft 365 & Outlook

Microsoft 365 Authenticated SMTP settings for users
Microsoft 365 Settings

Enable Authenticated SMTP in the Microsoft Admin Center under Active Users settings.

Keywords: microsoft authenticated smtp, outlook corporate mailer, office 365 smtp credentials
  • SMTP Host: smtp.office365.com using Port 587 (TLS).
  • Mailbox Configuration: Ensure "Authenticated SMTP" is explicitly enabled for the specific user account inside the Microsoft 365 Admin Center (under Active Users > Mail > Email Apps).

3. Transactional API Credentials

  • SendGrid: Host is smtp.sendgrid.net on Port 587 (TLS). Username must be the literal string apikey, and Password is the generated API Key.
  • Brevo (Sendinblue): Host is smtp-relay.brevo.com on Port 587 (TLS). Username is your registered account email, and Password is the SMTP API Key.
  • Mailgun: Host is smtp.mailgun.org (US domains) or smtp.eu.mailgun.org (EU domains) on Port 587 (TLS). Username is the specific SMTP credential name, and Password is the SMTP password.
  • Resend: Host is smtp.resend.com on Port 465 (SSL). Username must be the literal string resend, and Password is the API Key.

4. Shared Hosting Port Restrictions

Port 25 Restriction Warning Many shared hosting providers (such as Bluehost, Hostgator, GoDaddy) block outbound communication on Port 25 by default to prevent spam. Ensure you use Port 587 (TLS) or Port 465 (SSL) to prevent outbound socket timeouts.

5. Unsaved Changes Guard

Wawp includes a built-in safety listener. If you make modifications in the setup sheet but attempt to reload the browser or navigate away without clicking Save, Wawp prevents the action to protect your credentials.

Share this article:

Did this page help you?
100% found this article helpful (0 likes)