How to Configure WordPress to Use SMTP For Sending Emails Print

  • 0

### How to Configure WordPress to Use SMTP for Sending Emails Using Easy WP SMTP

By default, WordPress uses the PHP mail function to send emails, which can lead to poor deliverability and emails landing in spam folders. Configuring SMTP (Simple Mail Transfer Protocol) ensures reliable, authenticated email sending. The **Easy WP SMTP** plugin is a free, user-friendly solution that integrates seamlessly with your gptservers.net hosting account. It supports providers like Gmail, Outlook, cPanel email, SendGrid, and more.

This guide covers installation and setup for WordPress 5.0+ (compatible with Gutenberg and block themes). The process takes about 5–10 minutes.

#### Prerequisites
- **Admin Access**: Log in to your WordPress dashboard (`https://yourdomain.com/wp-admin`).
- **SMTP Credentials**: Gather these from your email provider:
- **SMTP Host**: e.g., `mail.yourdomain.com` (for gptservers.net cPanel email), `smtp.gmail.com` (Gmail).
- **Port**: 587 (TLS recommended), 465 (SSL), or 25 (unsecured).
- **Username**: Your full email address (e.g., `info@yourdomain.com`).
- **Password**: Your email password (for Gmail with 2FA, use an App Password).
- **Test Email Address**: Prepare an email to verify the setup.
- If using cPanel email on gptservers.net, create an email account first via cPanel > **Email Accounts**.

**Note**: Enable 2FA on your email provider for security. For Gmail/Outlook, generate an app-specific password if required.

#### Step-by-Step Configuration
1. **Install the Easy WP SMTP Plugin**:
- In your WordPress dashboard, go to **Plugins** > **Add New**.
- Search for "Easy WP SMTP".
- Click **Install Now** on the plugin by "Easy WP SMTP" (free version by WPForms).
- Once installed, click **Activate**.

2. **Access the Settings**:
- In the left sidebar, go to **Easy WP SMTP** > **Settings**. This launches an onboarding wizard (if it's your first time).

3. **Choose Your Mailer**:
- Select your email provider from the list (e.g., **Gmail/Google Workspace**, **Other SMTP**, or **cPanel Email** for gptservers.net).
- If "Other SMTP", proceed to manual configuration.

4. **Configure SMTP Settings**:
- **From Email**: Enter the sender email (must match your SMTP username for authentication, e.g., `noreply@yourdomain.com`).
- **From Name**: Enter a display name (e.g., "Your Site Name").
- **SMTP Host**: Enter your provider's SMTP server (e.g., `mail.yourdomain.com` for gptservers.net).
- **SMTP Port**: Enter the port (e.g., 587).
- **Encryption**: Select **TLS** (for port 587) or **SSL** (for 465).
- **Authentication**: Toggle **On** (required for most providers).
- **SMTP Username**: Your full email address.
- **SMTP Password**: Your email password.
- Toggle **Force From Email** and **Force From Name** to **On** to enforce these for all site emails.
- (Optional) Enable **Improved Email Deliverability** and **Email Error Tracking** (free features for logging failures).

5. **Complete Onboarding and Save**:
- Click **Save Changes** or **Continue** through the wizard.
- Optionally, enable features like **Weekly Email Summary** (sends reports to an admin email) or usage tracking for plugin improvements.

6. **Test the Configuration**:
- Scroll to the **Test Email** section on the settings page.
- Enter a recipient email address.
- Click **Send Test Email**.
- Check the recipient's inbox (and spam folder) for the message. If successful, you'll see "Email sent successfully!"
- Review the **Debug Events** log (under **Easy WP SMTP** > **Debug Events**) for any errors.

#### Example Configurations for Common Providers
Here's a quick reference table for popular setups:

| Provider | SMTP Host | Port | Encryption | Username/Password Notes |
|-----------------------|----------------------------|------|------------|------------------------------------------|
| **gptservers.net cPanel Email** | `mail.yourdomain.com` | 587 | TLS | Full email / Email password |
| **Gmail** | `smtp.gmail.com` | 587 | TLS | Full Gmail / App Password (if 2FA on) |
| **Outlook/Office 365**| `smtp-mail.outlook.com` | 587 | TLS | Full email / Email password |
| **SendGrid** | `smtp.sendgrid.net` | 587 | TLS | `apikey` / API key |

#### Troubleshooting
- **Test Email Fails**: Verify credentials and port. Ensure your gptservers.net firewall allows outbound SMTP (ports 25/587/465). For Gmail, enable "Less Secure App Access" or use App Passwords.
- **Emails in Spam**: Use a verified domain email; avoid free providers for high-volume sends. Check SPF/DKIM records in cPanel > **Email Deliverability**.
- **Plugin Conflicts**: Deactivate other SMTP plugins (e.g., WP Mail SMTP). Clear WordPress cache if using caching plugins.
- **Multisite**: Configure network-wide via **Easy WP SMTP** > **Network Settings** (Pro feature for advanced logging).
- **Logs and Errors**: Enable **Debug Email Sending** in settings to log all attempts. Export logs for review.

#### Pro Features (Optional Upgrade)
The free version suffices for most users, but the Pro version ($49/year) adds email logs, reports, backup mailers, and multisite management for better monitoring.

This setup routes all WordPress emails (e.g., contact forms, notifications) through SMTP, improving deliverability on your gptservers.net site. For advanced integrations (e.g., WooCommerce), the plugin auto-handles them. If issues persist, contact support@gptservers.net or the plugin's support forum.

For more details, visit the [Easy WP SMTP documentation](https://wordpress.org/plugins/easy-wp-smtp/).


Was this answer helpful?

« Back
-->