Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Troubleshooting

WP Mail SMTP Force From Email Not Working: Causes and How to Fix It

WP Mail SMTP Force From Email Not Working: Causes and How to Fix It

Short answer

Force From Email usually fails because the setting was not saved, your mail provider such as Gmail rewrites the sender, a wp-config constant overrides it, or another plugin sends mail without going through WordPress. Fix the cause, then run the WP Mail SMTP email test.

Key takeaways

  • Force From Email only controls what WordPress sends, not what your provider does afterward.
  • Gmail and Outlook only send from the connected account or verified aliases.
  • WPMS_ constants in wp-config override the settings screen.
  • Plugins that bypass wp_mail need their own From address set.
  • An on behalf of label means missing SPF, DKIM or DMARC, not a broken setting.

Why is WP Mail SMTP Force From Email not working?

Force From Email usually fails because the checkbox wasn't saved, your mail provider rewrites the sender, a constant in wp-config overrides it, or the email is sent by a plugin that bypasses WordPress mail.

Force From Email is a setting in WP Mail SMTP that makes every email use the From Email address you entered, even if another plugin tries to set its own.

When it works, all site emails come from one consistent address. When it fails, some emails still show another sender, such as a form plugin's address or the Gmail account you connected.

The fix depends on where the change happens. It might be in WordPress, in the plugin, or at your mail provider after the email leaves your site.

WP Mail SMTP's own article on using the Force From Email setting explains how the option is meant to behave.

How does Force From Email actually work?

WordPress lets plugins set a sender address when they send mail; Force From Email tells WP Mail SMTP to ignore those values and always apply the address in its settings.

Every email from WordPress passes through the wp_mail function. Plugins can set their own From address with headers or with the wp_mail_from filter.

With Force From Email off, WP Mail SMTP respects those custom addresses. With it on, the plugin replaces them with your chosen address.

That means Force From Email only controls what your site sends. It cannot stop your mail provider from changing the sender after the email arrives on its servers.

If you want the full background on the plugin, read our explainer on what WP Mail SMTP is.

Is the Force From Email box actually ticked and saved?

Open WP Mail SMTP > Settings, check that the box under From Email is ticked, then scroll down and click Save Settings; the box is easy to tick and forget to save.

Steps:

  1. Go to WP Mail SMTP > Settings.
  2. Find From Email on the General tab.
  3. Enter the address you want, ideally on your own domain.
  4. Tick Force From Email below it.
  5. Scroll down and click Save Settings.
  6. Send a test from WP Mail SMTP > Tools > Email Test.

Some mailers grey out the From Email field. That means the mailer controls the sender itself, which is covered next.

Our guide on how to test WP Mail SMTP explains how to read the test results.

Is your mailer overriding the From address?

Some mailers, especially Gmail and Outlook, only let you send from the connected account or verified aliases, so they quietly replace any other From address.

This is the most common cause. Your settings are correct, but the provider swaps the sender before delivery.

Gmail and Google Workspace. Gmail sends from the connected account. To use another address, add it as a Send mail as alias in Gmail settings and verify it. WP Mail SMTP can then use that alias.

Microsoft 365 and Outlook. The sender usually must be the connected mailbox, or an address that mailbox has permission to send as.

Transactional services. Services such as SendGrid, Mailgun, Brevo or Amazon SES require a verified domain or sender. An unverified From address may be rejected or rewritten.

Other SMTP. Many hosts' SMTP servers only allow the address you log in with.

Mailer typeCan Force From use any address?What to do
Gmail or Google WorkspaceOnly the account or verified aliasesAdd the address as an alias
Microsoft 365 or OutlookOnly allowed mailboxesGrant send-as rights or use that mailbox
Transactional API servicesOnly verified domains or sendersVerify the domain
Host SMTPOften only the login addressUse the login address as From
Default PHP mailDepends on the serverSwitch to a proper mailer

Is a wp-config constant overriding the settings?

WP Mail SMTP can be configured with constants in wp-config, and when they are set, they take priority over the settings screen.

Look in your wp-config file for lines starting with WPMS_. Settings such as the From address and the force options can be defined there.

If you see them:

  • Edit the constant to the value you want, or
  • Remove the constants so the settings screen takes over again.

Fields controlled by constants usually appear locked on the settings screen. That is a quick clue.

WordPress explains the wp-config file in its wp-config handbook. Always back up the file before editing it.

Is a plugin sending email without wp_mail?

Some plugins send mail with their own library or API instead of wp_mail, so WP Mail SMTP never sees those messages and can't change their sender.

Newsletter plugins, some membership plugins and some ecommerce tools use their own sending systems. They often have a separate From address setting.

To find out which plugin sent an email, turn on the email log if your WP Mail SMTP plan includes it. Messages that never show in the log did not go through wp_mail.

Fix it in that plugin's settings. For example, MailPoet has its own sending options, covered in our guide to MailPoet SMTP settings.

Is another SMTP plugin conflicting?

Running two SMTP or mail plugins at once can cause one to override the other, so keep only one plugin in charge of outgoing mail.

Common overlaps:

  • A second SMTP plugin such as Post SMTP or FluentSMTP.
  • A host plugin that adds its own mail routing.
  • Form plugins with a built-in SMTP option, such as Elementor Pro's settings.

Deactivate other mail plugins and test again. If the sender is correct, you have found the conflict.

Our guide on Elementor SMTP settings explains how Elementor forms interact with SMTP plugins.

Is the From Name, not the address, what looks wrong?

If the address is right but the name is wrong, turn on Force From Name as well; it is a separate setting from Force From Email.

People often notice the name first. A form plugin may set its own sender name, such as the visitor's name, while the address stays correct.

Tick Force From Name under the From Name field and save. Test again.

Gmail and some other providers may also show their own account name in certain views. In that case, change the display name in the account settings.

Does the inbox show “on behalf of” or “via”?

That label means the sending server isn't fully authenticated for your domain, so the inbox shows the real sending service next to your From address.

This is not a Force From Email failure. The From address is correct, but authentication is missing.

Fix it by setting up SPF, DKIM and DMARC records for your domain. Our guide on setting up SPF, DKIM and DMARC walks through each record.

Google's email sender guidelines explain why these records matter for delivery to Gmail users.

What if emails stop sending after forcing the From address?

If emails fail after you force a new address, your mailer probably rejects that sender, so switch back to an allowed address or verify the new one with your provider.

Check WP Mail SMTP > Tools > Email Log or the debug events for the error. Messages like sender not allowed or unverified sender point to this problem.

Our guide to WP Mail SMTP not sending emails covers other errors, such as authentication failures and blocked ports.

How do you stop the From address problem coming back?

Use one address on your own domain, verify it with your mailer, keep only one mail plugin active, and test after every plugin update.

Good habits:

  • Use a domain address, such as one at your site's domain, not a free webmail account.
  • Verify the sender with your mail service.
  • Document constants you add to wp-config.
  • Run the email test after updating WP Mail SMTP or your form plugins.

Our guide on setting up SMTP in WordPress shows a clean setup you can follow from scratch.

Frequently asked questions

Why does Gmail ignore my From Email in WP Mail SMTP?

Gmail only sends from the connected account or from addresses added and verified as Send mail as aliases. Add your preferred address as an alias in Gmail, verify it, then set it as the From Email in WP Mail SMTP.

Why is the From Email field greyed out?

Either a constant in wp-config is controlling it, or your selected mailer sets the sender itself. Check wp-config for WPMS_ constants, and check your mailer's rules for allowed sender addresses.

Does Force From Email affect contact form reply-to addresses?

No. Forcing the From address does not change the Reply-To header that form plugins set. Replies still go to the visitor who filled in the form, which is usually what you want.

Should my From Email be on my own domain?

Yes. An address on your own domain, backed by SPF, DKIM and DMARC records, is far more likely to reach inboxes. Free webmail addresses used as senders from your site are often flagged as spoofing.

Why do only some emails use the wrong sender?

Those emails probably come from a plugin that sends mail without wp_mail, or that plugin uses its own SMTP settings. Find the plugin and set the sender in its own settings.

Sources

  1. Using the Force From Email setting WP Mail SMTP
  2. wp_mail() WordPress Developer Resources
  3. wp_mail_from hook WordPress Developer Resources
  4. WP Mail SMTP plugin WordPress.org
  5. Email sender guidelines Google

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.