Wp mail smtp office 365

To set up WordPress to use Office 365 SMTP for sending emails, you'll need to follow these steps:

Step 1: Enable Less Secure Apps in Office 365

  1. Log in to your Office 365 account.
  2. Go to the "Security & privacy" section.
  3. Click on "Sign-in and requirements".
  4. Scroll down to the "Less secure app and client access" section.
  5. Toggle the switch to "On" to allow less secure apps to access your account.

Step 2: Create an App Password in Office 365

  1. Log in to your Office 365 account.
  2. Go to the "Security & privacy" section.
  3. Click on "Sign-in and requirements".
  4. Scroll down to the "App passwords" section.
  5. Click on "Create" and follow the prompts to create a new app password.
  6. Note down the app password, you'll need it later.

Step 3: Configure WordPress to use Office 365 SMTP

  1. Log in to your WordPress dashboard.
  2. Go to "Settings" > "General".
  3. Scroll down to the "Mail" section.
  4. Update the "Mail Type" to "SMTP".
  5. Enter the following settings:
    • "SMTP Host": outlook.office365.com
    • "SMTP Port": 587
    • "SMTP Username": your Office 365 email address
    • "SMTP Password": the app password you created earlier
    • "SMTP Encryption": TLS
  6. Click "Save Changes" to save your settings.

Step 4: Test Your SMTP Settings

  1. Go to the "Tools" > "Mail" section in your WordPress dashboard.
  2. Click on the "Send a test email" button.
  3. If everything is set up correctly, you should receive a test email in your Office 365 inbox.

That's it! Your WordPress site should now be using Office 365 SMTP to send emails. If you encounter any issues, make sure to check your Office 365 account settings and WordPress SMTP settings to ensure everything is correct.