Skip to content
FunnelGuard

Fix guide by FunnelsGuard

SMTP credentials expired or app password revoked: how to fix

OPS-129High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

SMTP (Simple Mail Transfer Protocol) is the standard way a website hands an email to a mail service such as Google Workspace, Microsoft 365, Brevo, Mailgun or your host's mail server. To do that, the site logs in with credentials stored in a plugin or config file.

Those credentials can stop working. Common causes: someone changed the mailbox password, an app password (a separate password generated for one app) was deleted, two-step verification was changed, an admin turned off basic authentication, an API key was rotated, or the account was removed. The server then answers with an error such as 535 Authentication failed or 535 5.7.8 Username and Password not accepted.

The form itself still looks fine. The visitor sees a thank-you message, but the email to you (and often the autoresponder to them) is never sent.

Where the lead is lost
  1. Visitor submits formThank-you message shows
  2. Site logs in to SMTP535 authentication failed
  3. Notification emailNever sent
  4. Sales follow-upNobody knows the lead exists

The form submits normally, but the mail server rejects the login, so nobody is told.

Why it costs you leads or sales

If your only copy of a lead is the notification email, a failed login means the lead is gone. Order confirmations, booking confirmations and password resets can fail the same way, which leads to support requests and refunds.

It is also quiet. Ad platforms still record conversions, the thank-you page still loads, and you keep paying for clicks while the leads go nowhere. Many setups fail for days or weeks before anyone notices a drop in enquiries.

Leads reaching your inbox vs leads submittedExample numbers
Leads reaching your inbox vs leads submitted (example)Submitted: 40 leads per week; Received before failure: 40 leads per week; Received after failure: 0 leads per week0153140400SubmittedReceived before failu…Received after failureleads per week

Example: 40 forms are submitted each week. Before the credential fails, all 40 arrive. After it fails, none do, though the form still looks fine.

How to check if your site has it

Confirm the SMTP login is the problem
  1. Send a real test submission

    Fill in your own form with an address you can read and see whether the notification and any autoresponder arrive. Check spam too.

  2. Open your mail plugin's log or test toolWordPress

    WP Mail SMTP has an Email Test and, on paid plans, an email log. Post SMTP and FluentSMTP also log failures. Look for 535, 'authentication failed' or 'invalid credentials'.

  3. Check the provider's security alerts

    In Google Account > Security > App passwords, see whether the password still exists. In Microsoft 365 admin, check whether SMTP AUTH or basic authentication is disabled for the mailbox.

  4. Test the login outside the site

    Try the same username and password in a mail client or with the command below. A rejection there confirms the credentials are bad, not your form.

Test an SMTP login from a terminal (replace host and port)bash
openssl s_client -starttls smtp -connect smtp.example.com:587 -crlf
# then type: EHLO test
# AUTH LOGIN  (and paste base64 username, then base64 password)
# 235 = accepted, 535 = rejected
Common SMTP error messages and what they usually mean
ErrorUsual meaningFirst thing to try
535 Authentication failedWrong or changed passwordReset the password and update the site
535 5.7.8 Username and Password not acceptedGmail rejected the login or app password was revokedCreate a new app password
535 5.7.139 Authentication unsuccessfulMicrosoft 365 blocks basic auth or SMTP AUTH is offEnable SMTP AUTH for the mailbox or switch to an API or OAuth connection
534 / 'Application-specific password required'Two-step verification is on and a normal password was usedUse an app password
401 / 403 from an API providerAPI key rotated or deletedCreate a new key

How to fix it

The fix is always the same in outline: create a working credential at your mail provider, put it where your site stores it, and test. The exact screens depend on your platform and mail provider.

Update the SMTP credentials on your platform
  1. Create a new credential

    At your provider, generate a new app password or API key (Google: Account > Security > 2-Step Verification > App passwords).

  2. Update the plugin

    Open WP Mail SMTP (or your SMTP plugin) > Settings, paste the new password or key and save. If the password is set in wp-config.php, edit it there instead.

  3. Send the test email

    Use WP Mail SMTP > Tools > Email Test and then submit your real form.

How to confirm it's fixed

Confirmation checklist
  • The plugin or app test email arrives in the inbox
  • A real submission of the live form delivers the notification to the right address
  • The autoresponder reaches the visitor's address
  • The email log shows no 535 or authentication errors
  • The lead also appears in your CRM or entries list

How to prevent it happening again

Credentials fail when people change things without knowing the website depends on them. Reduce the surprise.

Prevention habits
  • Use a dedicated sending account or API key just for the website
  • Record who owns the credential and where it is stored
  • Rotate keys on a plan and update the site the same day
  • Check provider security emails before password resets or admin changes
  • Turn on error logging or failure alerts in your SMTP plugin
  • Run a scheduled test submission so a break shows up within a day
How a revoked app password goes unnoticed
  1. Day 0

    An admin resets the mailbox password; the old app password stops working.

  2. Day 0

    The form still shows its thank-you message.

  3. Day 5

    Example: Someone notices fewer enquiries than usual.

  4. Day 6

    New app password is created and entered; test passes.

How FunnelGuard handles this

FunnelGuard detects this today. A robot visitor fills in and submits your real lead form on a schedule, then checks whether the test lead actually reaches the inbox and CRM. When the SMTP login is rejected, the notification never arrives, and the check reports a delivery failure (delivery_failed).

The failure is re-checked from a second region before one alert goes out by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause. Test submissions are marked (utm_source=funnelguard, fg_test=1, an fg_test cookie and a dedicated user agent) so you can filter them out. FunnelGuard tells you the lead did not arrive; it does not see inside your mail provider, so you still confirm the exact reason in your SMTP log or provider account.

The Free plan covers 1 site and 2 journeys with daily checks and no card. Paid plans start at $39/month with a 3-day free trial, and a free read-only website audit is available.

Questions people ask

Why are my website form emails not sending after I changed my email password?

Your site probably still uses the old password to log in to the mail server. The server rejects it with a 535 authentication error and the email is dropped. Update the password or create a new app password in your SMTP plugin or config, then send a test.

How do I fix a revoked Gmail app password for WordPress?

Go to Google Account > Security > 2-Step Verification > App passwords, create a new one, and paste it into WP Mail SMTP or your SMTP plugin. Save and run the plugin's Email Test. Then submit your real form to confirm.

What does SMTP error 535 authentication failed mean?

It means the mail server refused the username and password your site offered. The credentials are wrong, expired, revoked, or the account no longer allows that login method. Create a working credential and update it on the site.

Why did my Microsoft 365 SMTP stop working?

Microsoft can disable basic authentication or SMTP AUTH for a tenant or mailbox, which makes older SMTP logins fail. Check whether SMTP AUTH is enabled for the mailbox, or switch your plugin to an OAuth or API-based connection if it supports one.

How do I know if my contact form emails are failing?

Submit the form yourself and see whether the notification arrives. Then check your SMTP plugin's email log for authentication errors. A scheduled test submission, such as one run by a monitoring tool, catches it without relying on you remembering.

Do SMTP app passwords expire?

Google app passwords do not have a set expiry, but they stop working if you delete them, change your account password in some cases, or remove two-step verification. API keys and company-managed passwords may be rotated on a schedule. Treat every credential as something that can be revoked.

Can FunnelGuard tell me when my form emails stop arriving?

Yes. It submits a marked test lead on a schedule and checks whether it reaches the inbox and CRM. If it does not, it re-checks from a second region and sends one alert with a screenshot and a likely cause.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: delivery_failed.

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.