Skip to content
FunnelGuard

Fix guide by FunnelsGuard

WordPress recovery mode email sent to wrong address: fix it

OPS-249Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

Since WordPress 5.2, a fatal PHP error caused by a plugin or theme triggers recovery mode. WordPress shows visitors a message such as "The site is experiencing technical difficulties" and emails a special login link to the site's admin address. That link lets an administrator log in, pause the broken plugin or theme and get the site back.

Why it costs you leads or sales

The wrong address does not break your site. It makes a break last longer. If a plugin update crashes a page that holds your lead form or checkout, the recovery link is the fastest way in. Without it, you need FTP, a hosting file manager or your host's support to disable the plugin by hand.

Every hour spent finding the right person is an hour of lost form fills or orders on the affected pages. The impact is low on its own, but it multiplies the cost of any other crash.

How a wrong recovery address stretches an outage (Example)
  1. 09:00

    A plugin update causes a fatal error on the checkout page.

  2. 09:01

    WordPress emails the recovery link to a former developer's address.

  3. 09:01 to 13:00

    Nobody on the team sees the email. Orders on that page fail.

  4. 13:00

    Someone notices, contacts the host and the plugin is disabled by file access.

  5. 13:20

    Checkout works again.

How to check if your site has it

Quick checks
  • Go to Settings > General and read the Administration Email Address. Is it a mailbox someone actively reads?
  • Search wp-config.php for RECOVERY_MODE_EMAIL. If it is set, that address overrides the admin email.
  • Ask your developer or agency whether a plugin or code snippet changes the recovery address.
  • Check the address is not a staging, test or old agency email.
  • Send a test message from that mailbox's provider to confirm it is still active and not full.
  • Check that your site can send email at all (an SMTP plugin or host mail setup), otherwise the recovery email will never arrive.

How to fix it

Change where the recovery email goes
  1. Open General settings

    In the dashboard go to Settings > General.

  2. Update the admin email

    Enter the right address in Administration Email Address and save. WordPress sends a confirmation email to the new address; click the link in it to finish the change.

  3. Check the users list

    Under Users, make sure at least one administrator uses an address that is monitored.

wp-config.php: set the recovery mode emailphp
define( 'RECOVERY_MODE_EMAIL', 'alerts@example.com' );
Filter alternative (put it in a must-use plugin)php
add_filter( 'recovery_mode_email', function ( $email_data ) {
    $email_data['to'] = 'alerts@example.com';
    return $email_data;
} );

How to confirm it's fixed

Verify the new address
  1. Confirm the settingWordPress

    Reload Settings > General and check the new address shows with no pending-change notice.

  2. Test mail deliveryWordPress

    Send a test email from WordPress with an SMTP or mail-logging plugin and confirm it reaches the inbox, not spam.

  3. Test on staging

    On a staging copy, deactivate nothing live: add a deliberate fatal error in a test plugin there and check the recovery email arrives at the right address. Never do this on the live site.

  4. Tell the team

    Write down who owns that inbox and what to do when the link arrives. The link expires after a limited time, so someone must act on it.

How to prevent it happening again

Prevention habits
  • Use a shared role mailbox for the admin and recovery address.
  • Review the admin email after every migration, handover or staff change.
  • Add the address check to your site launch and offboarding checklists.
  • Keep a documented backup access route: SFTP or file manager credentials stored safely.
  • Set up reliable outgoing mail (SMTP) so system emails arrive.
  • Use staging to test updates before they reach the live site.

How FunnelGuard handles this

This issue is outside what FunnelGuard checks. FunnelGuard runs a robot visitor through your customer journeys and checks the steps, tracking hits and test leads. It cannot see which address WordPress uses for its internal recovery emails or read your settings.

The kind of tool that fits is a WordPress site-management or configuration review, such as a maintenance dashboard or a manual admin audit, plus a mail-logging or SMTP plugin to confirm system emails are delivered. The free FunnelGuard audit is read-only and does not cover this setting either.

Summary of the options

Ways to set the recovery email
MethodWhereBest for
Administration Email AddressSettings > GeneralMost sites; also receives other system emails
RECOVERY_MODE_EMAIL constantwp-config.phpA separate address just for recovery
recovery_mode_email filterMust-use plugin or custom codeDevelopers who need logic or several recipients

Questions people ask

Why did WordPress send the recovery mode email to the wrong address?

By default WordPress sends it to the Administration Email Address in Settings > General. If that address is old, belongs to a former developer or was copied from a migration, the link goes there. A RECOVERY_MODE_EMAIL constant in wp-config.php can also override it.

How do I change the WordPress recovery mode email address?

Change the Administration Email Address in Settings > General and confirm the new address through the email WordPress sends. Or add define( 'RECOVERY_MODE_EMAIL', 'you@example.com' ); to wp-config.php to set a separate recovery address.

I did not get the recovery mode email. What can I do?

Check spam, then check the admin address in Settings > General and whether your site can send email at all. If you cannot get the link, disable the faulty plugin by renaming its folder in wp-content/plugins over SFTP or your host's file manager.

Does the WordPress recovery mode link expire?

Yes. The link is valid for a limited time and is tied to the session, so act quickly when it arrives. If it has expired, trigger a new one by reloading the broken page or log in using file access.

Can I send the recovery mode email to more than one person?

The constant takes one address. To notify several people, point it to a shared mailbox or group alias, or use the recovery_mode_email filter in a must-use plugin to change the recipient.

Does changing the admin email affect anything else?

Yes. The admin address also receives other site notices, such as update and new user messages. Use a shared mailbox you trust, or use RECOVERY_MODE_EMAIL if you only want to change recovery messages.

Can FunnelGuard tell me if my recovery mode email is wrong?

No. This is outside what FunnelGuard checks. A WordPress configuration audit or a mail-logging tool is the right fit for this.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.