> ## Documentation Index
> Fetch the complete documentation index at: https://kb.hostcloud.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Make WordPress emails and contact forms arrive (SMTP)

> Send WordPress and contact form emails through your own email account, so they stop going missing or into spam.

If your contact form messages, order emails or password resets don't arrive, or land in spam, set WordPress to send through a real email account with SMTP. This guide shows you how, and how to cut down form spam.

## Why emails go missing

By default, WordPress sends email without logging in to a mailbox. Many email providers distrust these messages. Sending through SMTP means WordPress logs in to an email account on your domain, like your email app does, so messages are more trusted.

## Step 1: Create an email account for your site

Create an address such as `website@yourdomain.com` in cPanel. Use a strong password. See [Create an email account](https://kb.hostcloud.in/email/create-an-email-account.md).

> [!TIP]
>
> Check that your domain has SPF and DKIM records. They help your emails reach the inbox. See [SPF, DKIM and DMARC](https://kb.hostcloud.in/dns/spf-dkim-dmarc.md).

## Step 2: Install an SMTP plugin

**1. Add the plugin**

In WordPress, go to **Plugins → Add New**, search for an SMTP plugin, for example `WP Mail SMTP`, then install and activate it.

**2. Choose other SMTP**

In the plugin's settings, choose the general "Other SMTP" option, not a named email service.

**3. Enter your settings**

| Setting | Value |
| - | - |
| From email | `website@yourdomain.com` |
| SMTP host | `mail.yourdomain.com` |
| Encryption | SSL |
| Port | `465` |
| Authentication | On |
| Username | The full email address, `website@yourdomain.com` |
| Password | That email account's password |

Replace `yourdomain.com` with your own domain.

**4. Send a test**

Save, then use the plugin's test email feature to send a message to an address you can check, such as your Gmail.

> [!NOTE]
>
> Set your contact form's "From" address to the same email account. Put the visitor's address in **Reply-To** instead, so you can still reply to them. Sending "from" the visitor's address is a common reason form emails go to spam.

## If the test fails

| Error | What to check |
| - | - |
| Authentication failed | The username must be the full email address. Reset the account's password in cPanel and enter it again |
| Could not connect | The host is `mail.yourdomain.com`, with port `465` and SSL. Your domain must point to HostCloud |
| Test sent but never arrives | Check the spam folder, then see [Fix emails going to spam](https://kb.hostcloud.in/email/fix-emails-going-to-spam.md) |

## Stop contact form spam

* **Turn on your form plugin's spam protection,** such as a CAPTCHA or a hidden "honeypot" field. Most form plugins have one built in.
* **Don't publish your email address** as plain text on your pages. Use the form instead.
* **Keep plugins up to date.** Old form plugins are a common target.

Still stuck? [Open a ticket](https://kb.hostcloud.in/support/open-a-ticket.md) with your domain name and the error the SMTP plugin shows.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.