If you’re using FluentSMTP with Microsoft Outlook (Office 365) on your WordPress website and facing a “Forbidden Error”, you’re not alone. This is one of the most common issues users encounter during setup.
The good news? It’s usually easy to fix once you know the cause.
🚫 What Does “Forbidden Error” Mean?
A 403 Forbidden error typically means that Microsoft is blocking your request due to:
- неправиль permissions
- incorrect redirect URL
- missing API access
In simple terms: your app is not properly authorized.
✅ Step-by-Step Fix
🔧 1. Check Redirect URI (Most Important)
Go to your Microsoft Azure Portal:
- Navigate to:
Azure Active Directory → App Registrations → Your App → Authentication
Make sure your Redirect URL is EXACTLY:
https://yourdomain.com/wp-admin/options-general.php?page=fluent-mail#/settings
👉 Even a small mismatch (like http vs https) will cause the error.
🔐 2. Add API Permissions
Go to:
API Permissions → Add Permission → Microsoft Graph
Add these:
- Mail.Send
- User.Read
Then click:
👉 Grant Admin Consent
⚠️ Without this, authentication will fail.
🔑 3. Generate Client Secret
- Go to: Certificates & Secrets
- Click New Client Secret
- Copy the VALUE (not ID)
Paste it into FluentSMTP settings.
🧑💻 4. Verify Credentials in FluentSMTP
Make sure you correctly entered:
- Client ID
- Client Secret
- Tenant ID
Then click:
👉 Authenticate with Microsoft
⚠️ 5. Check Account Restrictions
If you’re using a business email:
- Admin might block app access
- Security policies may prevent login
👉 Contact your admin or disable restrictions.
🧪 Test Your Email
After setup:
- Go to FluentSMTP → Email Test
- Send a test email
If everything is correct, your email should be delivered instantly.
💡 Pro Tips
- Always use OAuth (API) instead of SMTP username/password
- Ensure your website uses HTTPS
- Disable other SMTP plugins to avoid conflicts
🎯 Conclusion
The FluentSMTP Outlook Forbidden Error usually comes down to:
- incorrect redirect URL
- missing permissions
- or lack of admin consent
Fix these, and your email system will work perfectly.
