How to use wp mail smtp

WP Mail SMTP is a popular plugin for WordPress that allows you to send emails using your own SMTP (Simple Mail Transfer Protocol) server instead of the default PHP mail function. Here's a step-by-step guide on how to use WP Mail SMTP:

Step 1: Install and Activate the Plugin

  1. Log in to your WordPress dashboard.
  2. Click on the "Plugins" tab and then click on "Add New".
  3. Search for "WP Mail SMTP" and click on the "Install Now" button.
  4. Activate the plugin.

Step 2: Configure the Plugin

  1. Go to the "WP Mail SMTP" settings page by clicking on the "WP Mail SMTP" tab in the left-hand menu.
  2. Click on the "Settings" tab.
  3. Fill in the required information:
    • SMTP Host: Enter the hostname of your SMTP server (e.g., "smtp.example.com").
    • SMTP Port: Enter the port number of your SMTP server (e.g., "587").
    • SMTP Username: Enter your SMTP username (e.g., "[email protected]").
    • SMTP Password: Enter your SMTP password.
    • From Email: Enter the email address that you want to use as the "From" address for your emails.
    • From Name: Enter the name that you want to use as the "From" name for your emails.
  4. Click on the "Save Changes" button.

Step 3: Test the Plugin

  1. Go to the "WP Mail SMTP" settings page and click on the "Test" tab.
  2. Click on the "Send Test Email" button.
  3. If the test email is sent successfully, you should receive an email in your inbox.

Step 4: Configure Your WordPress Site

  1. Go to the "Settings" tab in the WordPress dashboard.
  2. Click on the "General" tab.
  3. In the "Email Address" field, enter the email address that you want to use as the default email address for your WordPress site.
  4. Click on the "Save Changes" button.

Step 5: Use the Plugin

  1. Now that you have configured the plugin, you can use it to send emails from your WordPress site.
  2. To send an email, go to the "Contact" page or any other page that allows you to send an email.
  3. Fill in the required information and click on the "Send" button.
  4. The email will be sent using your SMTP server instead of the default PHP mail function.

Troubleshooting Tips

By following these steps, you should be able to use WP Mail SMTP to send emails from your WordPress site using your own SMTP server.