Wp mail smtp google

To set up WordPress to use Google's SMTP server for sending emails, you'll need to follow these steps:

Step 1: Create a Google Account and Enable Less Secure Apps

  1. Go to the Google Account settings page and sign in with your Google account.
  2. Click on the "Security" tab.
  3. Scroll down to the "Less secure app access" section and toggle the switch to "On".

Step 4: Create an App Password

  1. Go to the Google Account settings page and sign in with your Google account.
  2. Click on the "Security" tab.
  3. Scroll down to the "Signing in to Google" section and click on "App passwords".
  4. Select "Other (Custom name)" and enter a name for your app password (e.g. "WordPress").
  5. Click "Generate" and copy the app password.

Step 2: Install and Configure the WP Mail SMTP Plugin

  1. Install the WP Mail SMTP plugin from the WordPress plugin directory or by uploading it to your WordPress site.
  2. Activate the plugin.
  3. Go to the plugin's settings page by clicking on "WP Mail SMTP" in the WordPress admin menu.
  4. Enter your Google account email address and the app password you created in Step 4.
  5. Set the "SMTP Host" to "smtp.gmail.com" and the "SMTP Port" to "587".
  6. Set the "SMTP Encryption" to "TLS".
  7. Click "Save Changes".

Step 3: Configure Your WordPress Site's Email Settings

  1. Go to the WordPress admin dashboard and click on "Settings" > "General".
  2. Update the "Email Address" and "Notification Email" fields to use your Google account email address.
  3. Click "Save Changes".

That's it! Your WordPress site should now be using Google's SMTP server to send emails. If you encounter any issues, you can try troubleshooting by checking the plugin's settings and error logs.