# Connect WordPress to Mail Niaga SMTP (FluentSMTP)

> Send the emails of your WordPress site through Mail Niaga SMTP with the FluentSMTP plugin, then send a test email to check the connection.
>
> Source: https://docs.mailniaga.com/smtp-wordpress/

This article is for WordPress site owners who have a **Mail Niaga SMTP** account. With the FluentSMTP plugin, the emails from your site (forms, orders, password resets) go through Mail Niaga SMTP. Thus more of these emails arrive in the inbox.

Before you start, [add and verify your domain](https://docs.mailniaga.com/smtp/) in your Mail Niaga SMTP account.

## Get the SMTP details

The connection details are in your Mail Niaga SMTP account:

1. Log in to your Mail Niaga SMTP account.
2. In the top menu, click **SMTP Account**.
3. Click the name of your organisation.
4. Copy the host, port, username and password in the **SMTP Connections** section.

Keep the password safe. Do not share the password in an email or a message.

## Install FluentSMTP

Do these steps in the WordPress admin:

1. Click **Plugins** → **Add New Plugin**.
2. Search for "FluentSMTP", then click **Install Now**.
3. Click **Activate**.

## Add the Mail Niaga SMTP connection

Have the details from **SMTP Connections** ready, then do these steps:

1. Click **Settings** → **FluentSMTP**.
2. Click **Add Connection**.
3. Choose **SMTP Server**.
4. Fill in **From Email** with an address on a verified domain, and **From Name** with the name of your business.
5. Fill in **SMTP Host** and **SMTP Port** from **SMTP Connections**.
6. Choose the **Encryption** that matches that port.
7. Fill in **SMTP Username** and **SMTP Password**.
8. Click **Save Connection Settings**.

## Send a test email

Send a test email to make sure that the connection works:

1. In FluentSMTP, open the **Email Test** tab.
2. Type your own email address.
3. Click **Send Test Email**.
4. Check your inbox.

You can also check the records of sent email in **Activity** in your Mail Niaga SMTP account.

## Tips

This advice helps your emails arrive:

- **Use a From Email on a verified domain.** Email from other domains goes into the Spam folder more frequently.
- **Send a test email after each change.** Then you will know immediately if the connection details are wrong.

## Common issues

### What must I check if the FluentSMTP test email fails?

Make sure that SMTP Host, SMTP Port, SMTP Username and SMTP Password are exactly the same as the details in your Mail Niaga SMTP account. Also make sure that the Encryption matches the port, and that the domain in From Email is verified.

### Why does the email arrive, but in the Spam folder?

Possibly the domain in From Email is not verified yet, or the SPF record is not correct yet. Verify the domain in your Mail Niaga SMTP account first.
