Skip to main content

A to Z Website Solutions

WordPress Troubleshooting

How Do I Set Up SMTP Email Delivery on My WordPress Website?

By Nov 08, 2026 19 min read

How Do I Set Up SMTP Email Delivery on My WordPress Website?

Imagine a potential customer visits your website, fills in your contact form and requests a quotation. Your website tells them their message has been sent successfully, but the email never reaches your inbox. The customer waits for a reply, you have no idea they contacted you, and a perfectly good business opportunity may be lost.

This is a problem that can affect WordPress websites, particularly when the website relies on its hosting server to send emails. Contact form notifications, password reset messages, booking confirmations and other important emails may fail to arrive, even though the website itself appears to be working normally.

One way to improve email delivery is to configure WordPress to use SMTP or a supported email sending service. The setup is usually manageable with a suitable plugin, although the exact steps depend on your email provider, hosting arrangements and the type of email your website needs to send.

Quick Answer

To set up SMTP email delivery on your WordPress website, install a reputable email sending plugin such as WP Mail SMTP, choose your email provider and connect the website using the provider’s supported authentication method. Configure an authorised sender email address, check any required DNS records and send a test email.

Once the test email works, submit a genuine enquiry through your website’s contact form to confirm that the complete process is working. Where available, use secure OAuth or API-based authentication rather than storing a normal email account password.

Remember that SMTP improves how your website sends messages, but it doesn’t guarantee every email will reach the recipient’s inbox. Correct email authentication, sender reputation and recipient filtering still matter.

What Is SMTP and Why Does WordPress Need It?

SMTP stands for Simple Mail Transfer Protocol. It is a standard method used to send email between servers and email services. When configured correctly, it allows your WordPress website to send messages through an authorised email account or sending service.

By default, WordPress uses a function called wp_mail() to handle many website-generated emails. This function commonly relies on the hosting server’s PHP mail configuration unless another sending method has been configured.

The problem is that some hosting environments restrict outgoing emails or don’t provide the authentication needed for reliable delivery. Even when WordPress successfully hands a message to the server, the receiving email provider may reject it or place it in spam.

Using an authenticated email sending service can help address these problems. Instead of depending entirely on the hosting server’s default mail system, WordPress connects to an authorised provider that handles outgoing messages.

Which WordPress Emails Can SMTP Help With?

SMTP can be useful for contact form notifications, password reset emails, administrator notifications, booking confirmations, membership messages and other emails generated by WordPress or its plugins.

For example, a local cleaning company might receive quotation requests through its website. If those notifications fail to arrive, the business could miss valuable enquiries without realising anything is wrong.

However, not every plugin uses WordPress’s standard email function. Some ecommerce, booking and marketing tools use their own email services, so those may require separate configuration.

Signs Your WordPress Email Delivery Needs Attention

Email delivery problems aren’t always obvious. Your website may display a successful submission message even though the notification email never arrives.

Common warning signs include:

  • Contact form enquiries not reaching your inbox.
  • WordPress password reset emails failing to arrive.
  • Booking or order notifications going missing.
  • Website emails repeatedly appearing in spam folders.
  • SMTP authentication or connection errors.
  • Email delivery problems after changing hosting providers.
  • Messages arriving inconsistently at different email providers.

Before assuming SMTP is the solution, check that the correct recipient address is configured and that the form itself is working. A contact form sending notifications to an old email address won’t be fixed simply by changing the sending method.

What You Need Before Setting Up SMTP

Before changing your WordPress email settings, establish which email provider your business uses. Your website hosting company and your email provider aren’t necessarily the same organisation.

For example, your website might be hosted with one company while your business email is managed through Microsoft 365 or Google Workspace. In that situation, the email sending configuration needs to match the actual email provider.

You will normally need administrator access to WordPress, details of the email service you intend to use and permission to configure that service. Some setups also require access to your domain’s DNS records.

Check Your Existing Email Arrangements

Find out which service currently handles your business emails, whether the provider supports SMTP or an API connection, and which email address should appear as the sender.

It’s also worth checking whether another WordPress SMTP plugin is already installed. Running multiple plugins that attempt to control the same email sending process can create conflicts or unexpected behaviour.

Before making significant changes, create a current website backup and record the existing settings. Avoid storing passwords or sensitive credentials in ordinary documents or unsecured screenshots.

Choosing a WordPress SMTP Plugin

One widely used option is WP Mail SMTP. It allows WordPress to send emails through supported providers using authenticated connections.

Other established WordPress email sending plugins are also available. The best choice depends on your provider, required features, budget and whether you prefer a traditional SMTP connection or a provider API.

What Should You Look For?

Choose a plugin that is actively maintained, compatible with your current WordPress version and supports your chosen email service. A built-in email testing feature is particularly useful because it allows you to check the connection without waiting for a customer to submit a form.

Some plugins also provide email logging and delivery reports. These can help investigate future problems, although you should consider the privacy implications of storing email content and personal information.

For this guide, we’ll use WP Mail SMTP as an example. The precise menu labels and available options may change between plugin versions.

How to Set Up SMTP Email Delivery in WordPress

Step 1: Install WP Mail SMTP

Log into your WordPress dashboard and go to Plugins > Add New Plugin. Search for WP Mail SMTP, check that you’ve selected the official plugin and choose Install Now.

Once installation is complete, activate the plugin. You should then see its settings or setup wizard available in the WordPress administration area.

Step 2: Choose Your Email Sending Provider

Open the plugin’s setup wizard and select the email service you want to use. The available options may include Google, Microsoft, specialist transactional email providers or an Other SMTP connection.

If your email provider offers an officially supported OAuth or API connection, this may be preferable to entering ordinary mailbox credentials into WordPress.

Follow the provider-specific instructions carefully. Some connections require you to create an application, approve permissions or verify your sending domain.

Step 3: Configure Your Sender Email Address

Enter the email address that your website is authorised to send messages from. For example, a business using examplebusiness.co.uk might configure website@examplebusiness.co.uk, provided the email provider allows that address.

The sender address should match the identity authorised by the email service. Using an unrelated or unverified address can cause authentication failures or delivery problems.

You can also configure a sender name, such as your business name, so recipients can recognise where the email came from.

Step 4: Enter SMTP Connection Details If Required

If you’re using a traditional SMTP connection, the plugin may ask for the outgoing mail server, port, encryption method, username and authentication credentials.

These details must come from your actual email provider. Don’t guess the server address or copy settings from an unrelated hosting company.

SettingWhat It Means
SMTP HostThe outgoing mail server supplied by your provider.
SMTP PortThe network port used for the connection, often 587 with STARTTLS or 465 with implicit TLS where supported.
EncryptionThe security method required by your email provider.
AuthenticationVerifies that the website is authorised to send email.
UsernameThe account or identity specified by your provider.
Password or TokenThe approved credential used for authentication.

Port 587 and port 465 are common secure email submission options, but they aren’t interchangeable in every configuration. Use the exact connection settings recommended by your provider.

Step 5: Save Your Settings

Once the connection details have been entered, save the configuration and complete any authorisation process required by the provider.

If the plugin reports an authentication error, don’t repeatedly change random settings. Review the provider instructions and confirm that the account has permission to send email using the selected method.

Step 6: Send a Test Email

Open the plugin’s email testing feature and send a message to an address you can access. Check whether the email arrives and whether the plugin reports any errors.

A successful test is encouraging, but it doesn’t guarantee that all website-generated messages will work. You should also test your actual contact forms and any other important website features.

Setting Up Gmail, Microsoft 365 or Hosting Email

Different email providers have different requirements. It’s important to choose a supported connection method rather than assuming that every provider uses the same SMTP settings.

Google Workspace and Gmail

Google accounts may be connected through supported Google authentication methods. Some integrations use OAuth, which allows WordPress to send messages without storing your normal Google account password.

Google’s policies around password-based authentication have changed over time, so follow the current instructions for the specific service and plugin you’re using.

Microsoft 365

Microsoft 365 uses Exchange Online for business email. Depending on your organisation’s settings, SMTP AUTH may be disabled or restricted, and supported modern authentication methods may be required.

For a new setup, check whether your WordPress plugin supports a suitable Microsoft connection using OAuth or an API. Your Microsoft 365 administrator may need to approve the connection.

Avoid relying on outdated tutorials that recommend entering a normal Microsoft account password without checking current authentication requirements.

Hosting Provider Email

If your email is hosted through your website hosting provider, you may be given SMTP server details through cPanel or another hosting control panel.

For example, a hosting company may provide an outgoing mail server, a secure connection port and mailbox credentials. Use the settings shown by your provider rather than assuming that your domain name is automatically the correct SMTP host.

If the connection fails, ask your hosting company whether outgoing SMTP connections are restricted or whether the server requires a different configuration.

Specialist Transactional Email Services

Businesses sending larger numbers of website-generated messages may benefit from a dedicated transactional email provider. These services are designed to handle messages such as order confirmations, password resets and automated notifications.

Some provide delivery logs, bounce reporting and domain authentication tools. Their pricing and sending limits vary, so compare the options against the number and type of messages your website sends.

Understanding SPF, DKIM and DMARC

Setting up an SMTP connection is only part of reliable email delivery. Receiving email providers also need ways to verify that messages genuinely come from the domain they claim to represent.

Three important technologies are SPF, DKIM and DMARC. These are generally configured through DNS records associated with your domain.

SPF

Sender Policy Framework helps identify which servers are authorised to send email for your domain. Your SPF record should include the services legitimately sending messages on behalf of your business.

It’s important not to create multiple separate SPF records for the same domain. If you use several sending services, their requirements normally need to be combined into one valid SPF policy.

DKIM

DomainKeys Identified Mail adds a digital signature to outgoing messages. Receiving systems can use this signature to help verify that the message is authentic and hasn’t been altered in transit.

DMARC

Domain-based Message Authentication, Reporting and Conformance builds on SPF and DKIM. It allows domain owners to publish policies about how messages that fail relevant authentication and alignment checks should be handled.

DMARC can also provide reports that help identify unauthorised sending activity.

Should You Change These Records Yourself?

If you’re unfamiliar with DNS settings, ask your email provider or website professional to check them. Incorrect changes can disrupt legitimate business email delivery.

Google provides useful email authentication guidance explaining how DKIM and related settings work.

How to Test Your WordPress SMTP Settings

Once SMTP has been configured, you need to confirm that the complete website email process works properly.

Test the SMTP Connection

Use your email plugin’s test feature to send a message to a mailbox you can access. Check the inbox and spam folder, and review any error information reported by the plugin.

Test Your Contact Form

Open your website in a private browser window while logged out of WordPress. Fill in the contact form using realistic test information and submit it.

Check that the form displays the correct confirmation message and that the notification reaches the intended business email address.

Test Reply-To Settings

If the contact form includes a customer’s email address, make sure the form uses that address as Reply-To where appropriate, rather than pretending to send directly from the customer’s account.

Reply to your test notification and confirm that the response goes to the correct address.

Test Other Important Website Emails

If your website sends booking confirmations, order notifications or membership messages, test those functions as well. A successful contact form test doesn’t automatically prove that every other plugin uses the same email configuration.

Common SMTP Errors and How to Fix Them

If your SMTP setup doesn’t work immediately, the error message can often help identify where the problem lies.

ProblemPossible CauseWhat to Check
Authentication failed Incorrect credentials, missing permissions or unsupported authentication. Review the provider’s required login or OAuth configuration.
Connection timed out Blocked outgoing connection or incorrect server details. Check the SMTP host, port and hosting restrictions.
Sender rejected The sender address isn’t authorised. Check the verified sender identity and provider permissions.
Test succeeds but form fails Incorrect form notification settings or a form-specific problem. Check the contact form’s recipient, sender and notification settings.
Emails go to spam Authentication, reputation or content filtering problems. Review SPF, DKIM, DMARC and delivery reports.

What If Your Hosting Provider Blocks SMTP?

Some hosting providers restrict outgoing connections on certain ports. If your connection repeatedly times out, ask the provider whether the required port is permitted.

Where supported, an API-based email connection may provide an alternative. However, you should still use a properly authenticated and authorised sending service.

What If SMTP Works but Contact Form Emails Still Fail?

Check the contact form plugin’s notification settings. Confirm the correct recipient address, sender identity and Reply-To configuration.

Also investigate whether a plugin conflict, security rule or form validation problem is preventing the submission from reaching the email sending process.

For more help with this specific issue, see our related guide: Why Is My WordPress Contact Form Not Sending Emails?

How to Keep Your SMTP Connection Secure

Your WordPress email connection may have permission to send messages using your business domain. This makes it important to protect the account and credentials used for authentication.

Where available, use OAuth or another supported token-based connection rather than storing a normal mailbox password. Restrict access to WordPress administrator accounts and enable two-factor authentication where possible.

Keep your SMTP plugin updated and remove unused integrations. If a developer or contractor no longer needs access to the website, review their permissions and revoke access where appropriate.

If your plugin stores email logs, consider whether those records contain personal information. Restrict access, apply sensible retention periods and avoid retaining sensitive message content unnecessarily.

For businesses that rely on website enquiries, it’s also worth arranging regular delivery tests and monitoring failed messages. This can help identify problems before they result in missed customer opportunities.

Expert Insight From Daren Ward

Daren Ward, Founder of A to Z Website Solutions
Daren Ward

Having worked with business websites since 2004, my advice is to treat email delivery as an important part of your website rather than something that can be forgotten once the contact form has been created.

When investigating a website that isn’t sending emails, I’d first want to establish whether the form is actually accepting enquiries. If messages are being recorded but notifications aren’t arriving, that gives us a useful starting point. I’d then check the sending configuration, the email provider and any relevant authentication records.

One thing I’d be particularly careful about is changing settings without knowing who manages the business email. A website may be hosted with one company while its email is handled somewhere completely different. Changing DNS or mail settings without understanding that arrangement can create more problems than it solves.

I’d also make sure the final test involves submitting a real enquiry through the website. A successful SMTP test is useful, but the important question for any business owner is whether a customer can fill in the form and have their message reach the right person.

WordPress SMTP Setup Checklist

  • Identify your current business email provider.
  • Check whether an SMTP plugin is already installed.
  • Create a website backup before significant changes.
  • Install a reputable and maintained email sending plugin.
  • Choose the provider’s recommended connection method.
  • Configure an authorised sender email address.
  • Use secure authentication and encryption.
  • Check SPF, DKIM and DMARC records where required.
  • Send a test email from the plugin.
  • Submit a genuine test enquiry through the contact form.
  • Test booking, order or other important notifications.
  • Monitor email delivery and review failures regularly.

Frequently Asked Questions

1. Do I need SMTP for my WordPress website?

Not every WordPress website needs a separate SMTP setup. Some hosting providers already offer a reliable email sending configuration. However, if your website emails are failing, being rejected or regularly appearing in spam, an authenticated SMTP or email API connection may help improve delivery.

2. Is WP Mail SMTP free?

WP Mail SMTP offers a free version with useful email sending features. Additional features and some provider integrations may require a paid plan. Check the current plugin information to confirm which features are included before choosing your setup.

3. Can I use Gmail SMTP with WordPress?

Yes, WordPress can send messages through supported Google email connections. The recommended setup depends on your account type and plugin. Modern authentication methods such as OAuth are generally preferable to entering your normal Google account password into WordPress.

4. Can I use Microsoft 365 to send WordPress emails?

Yes, provided you use a supported connection method and your organisation permits the required access. Microsoft 365 authentication requirements can differ from traditional SMTP setups, so check current Exchange Online guidance and the instructions for your chosen plugin.

5. What SMTP port should I use for WordPress?

Port 587 with STARTTLS and port 465 with implicit TLS are common secure email submission options. However, you must use the port and encryption method specified by your email provider. Incorrect combinations can prevent the connection from working.

6. Why does my SMTP test email work but my contact form still fails?

The SMTP connection may be working while the contact form has incorrect notification settings or a separate submission problem. Check the recipient address, sender identity, Reply-To settings and any conditional notification rules. Submit a test enquiry through the actual public form.

7. Will SMTP stop my WordPress emails going to spam?

SMTP can improve the sending process, but it cannot guarantee inbox delivery. Email authentication, sending reputation, message content and recipient filtering also influence whether a message reaches the inbox or spam folder.

8. What is the difference between SMTP and PHP mail?

WordPress commonly uses its wp_mail() function with the hosting server’s PHP mail system by default. An SMTP plugin can configure WordPress to send through an authenticated email provider instead. The latter gives you more control over the sending service and its authentication arrangements.

9. Can I set up SMTP without knowing my hosting details?

Possibly, if you have WordPress administrator access and use a supported external email provider. However, some setups require DNS changes, hosting permissions or help from your email administrator. Knowing who manages your domain, hosting and business email will make troubleshooting much easier.

10. How do I know my WordPress SMTP setup is working?

Send a test email through the SMTP plugin, then submit an enquiry through your public contact form. Confirm that the notification arrives, the sender information is correct and the Reply-To address works. Test any other important automated messages your website sends.

Summary

Setting up SMTP email delivery on your WordPress website can help improve the reliability of contact form notifications, password resets, booking confirmations and other important messages.

The process generally involves choosing a suitable email sending plugin, connecting an authorised provider, configuring the sender identity and testing the results. Depending on your setup, you may also need to check DNS authentication records or obtain assistance from your email provider.

Most importantly, don’t stop after receiving one successful test email. Check that the actual forms and features your customers use are working correctly. Reliable website email delivery is an important part of making sure valuable customer enquiries don’t go unanswered.

Getting Further Help

If you’re unsure which email provider your website should use, or your SMTP connection continues reporting errors, ask your hosting company or website professional to review the configuration.

Our WordPress maintenance service is one option for ongoing assistance with website functionality, updates and technical support.

The aim is to make sure your website sends important messages reliably without creating unnecessary security or email configuration problems.

Key Takeaways

  • SMTP allows WordPress to send emails through an authorised email service.
  • Authenticated sending can help resolve problems with the default PHP mail system.
  • Choose a maintained WordPress email plugin that supports your provider.
  • Use secure OAuth or API authentication where available.
  • Configure a sender address authorised by your email service.
  • Check SPF, DKIM and DMARC to support email authentication.
  • A successful SMTP test doesn’t guarantee final inbox delivery.
  • Always test your real contact forms and important website notifications.

Found This Helpful? Share It

If you found this article useful, please share it with other business owners who might find it helpful too.

A quick share on LinkedIn, Facebook or your favourite social platform could help someone else find the advice they need.

Client Login