SMTP Configuration

Connect DSMTP to your email provider's SMTP server for reliable email delivery.

Accessing SMTP Settings

In your WordPress admin, go to DSMTP → SMTP to configure your mail server.

Connection Settings

FieldDescription
HostYour SMTP server hostname (e.g., smtp.gmail.com, smtp.office365.com, mail.yourdomain.com)
PortSMTP port — typically 587 (TLS) or 465 (SSL)
EncryptionTLS, SSL, or None — use TLS when possible
UsernameYour full email address or SMTP username
PasswordYour email account password or app-specific password

Encrypted Storage

SMTP passwords are encrypted using AES-256-CBC with your WordPress installation's salt keys (AUTH_KEY, SECURE_AUTH_KEY, LOGGED_IN_KEY, NONCE_KEY). The plaintext password is never stored in the database and is never displayed when viewing settings.

Testing Your Connection

After entering your settings, click Test Connection to verify everything works. The test will:

  1. Attempt to connect to the SMTP server
  2. Authenticate with your credentials
  3. Send a test email to your WordPress admin email
  4. Display the full SMTP transcript for debugging

Failure Classification

If a connection fails, DSMTP automatically categorizes the error:

Failure TypeDescription
AuthenticationIncorrect username or password
CertificateSSL/TLS certificate verification failed
TLSEncryption handshake failed
ConnectionServer unreachable — wrong host or port
Account PolicyServer rejected the connection (e.g., less secure apps blocked)

Troubleshooting

If you're having trouble connecting:

  • Gmail: Use an App Password if 2FA is enabled. Allow less secure apps may be disabled by Google.
  • Outlook/Office 365: Use SMTP host smtp.office365.com on port 587 with TLS. Enable SMTP Auth in your Exchange admin center.
  • Custom domain email: Check with your hosting provider for the correct SMTP server address and port.