How to set up SMTP in WordPress: WP Mail SMTP, FluentSMTP and Post SMTP
Published on November 9, 2026 9 min read
Send WordPress email through your LJPc mailbox: the SMTP settings, step by step setup for WP Mail SMTP, FluentSMTP and Post SMTP, and fixes for common errors.
To send your WordPress email through a mailbox at LJPc hosting, install an SMTP plugin such as WP Mail SMTP, FluentSMTP or Post SMTP and choose a custom SMTP server. Enter ljpc.email as the server, use port 465 with SSL or port 587 with TLS, and sign in with the full email address and password of a mailbox on your domain. Then send a test email from the plugin. Below you will find the steps for each plugin and what to do when the test shows an error.
Do you need an SMTP plugin?
With LJPc hosting your website already sends email through our outgoing mail servers, without any plugin. An SMTP plugin makes WordPress sign in to a real mailbox and send through it. That gives you:
- One fixed sender address for all email from your site, even when a form or shop plugin fills in a different one.
- A test button that shows within seconds whether sending works.
- The error from the mail server when a message does not go out, and in many plugins a log of every sent and failed message.
If email from your contact form is not arriving, start with the causes in contact form not sending email. It also explains how to set the sender and reply-to address of your form.
Before you start
- Create a mailbox for your website, for example
website@yourdomain.com, as described in create an email address in the customer portal. With a separate mailbox your site keeps sending when you change the password of your own mailbox, and the password stored in your site only opens this one mailbox. - Test the password in webmail. Sign in at ljpc.email with the email address and password. If that works, you know the details are right before you enter them in WordPress. More about webmail in LJPc webmail.
- Use one SMTP plugin. Two SMTP plugins at the same time work against each other, and WP Mail SMTP warns you about it. Deactivate an old SMTP plugin before you set up a new one.
If your email is hosted with another provider, such as Microsoft 365 or Google Workspace, use that provider's details in the plugin. This guide is about a mailbox at LJPc hosting.
SMTP settings for your mailbox
These are the same details you use in your email app, see set up email on your phone, tablet and computer. They are the same for every domain at LJPc hosting.
| Setting | Value |
|---|---|
| SMTP server | ljpc.email |
| Port and encryption | 465 with SSL, or 587 with TLS (STARTTLS) |
| Authentication | On |
| Username | Your full email address, for example website@yourdomain.com |
| Password | The password of that email address |
| Sender (From Email) | The same address as the username |
Port and encryption belong together, and each plugin uses its own name for the encryption:
| Plugin | With port 465 | With port 587 |
|---|---|---|
| WP Mail SMTP | Encryption: SSL | Encryption: TLS |
| FluentSMTP | Encryption: SSL | Encryption: TLS |
| Post SMTP | Security: SMTPS | Security: STARTTLS |
A mismatch, such as port 465 with TLS, ends in a timeout or a message that the plugin cannot connect.
How to set up WP Mail SMTP
- In WordPress, go to Plugins and Add Plugin, search for WP Mail SMTP, click Install Now and then Activate. If the plugin opens its setup wizard, you can enter the same details there. The steps below use the settings page.
- Go to WP Mail SMTP and Settings, tab General.
- Enter your mailbox address under From Email and tick Force From Email, so every plugin uses this address as the sender.
- Under From Name, enter the name recipients see, for example your business name. Tick Force From Name to use it everywhere.
- Under Return Path, tick Set the return-path to match the From Email. Messages that cannot be delivered then bounce back to your mailbox.
- Under Mailer, choose Other SMTP.
- Enter
ljpc.emailas the SMTP Host. Choose SSL under Encryption and enter 465 as the SMTP Port, or choose TLS with port 587. Leave Auto TLS on if you see it. - Turn on Authentication, enter your full email address as the SMTP Username and its password as the SMTP Password.
- Click Save Settings at the bottom.
- Go to WP Mail SMTP and Tools, tab Email Test. Enter an address you can check under Send To and click Send Email.
Prefer not to keep the password in the database? Put it in wp-config.php in the root folder of your site, above the line that starts with /* That's all, stop editing!:
define( 'WPMS_ON', true );
define( 'WPMS_SMTP_PASS', 'your-mailbox-password' );
The SMTP Password field is then greyed out in the settings. To reach wp-config.php, see upload files with FTP or SFTP.
How to set up FluentSMTP
- Install and activate FluentSMTP under Plugins and Add Plugin.
- Go to Settings and FluentSMTP. The first time you pick a connection right away; later you click Add Connection.
- Choose SMTP Server.
- Enter your mailbox address under From Email and the name recipients see under From Name. Keep Force From Email (recommended) and Set the return-path to match the From Email ticked.
- Enter
ljpc.emailas the SMTP Host and 465 as the SMTP Port, and choose SSL under Encryption. On port 587, choose TLS. Note that FluentSMTP sets Encryption to None by default. Leave Use Auto TLS on. - Keep Authentication on and enter your full email address as the SMTP Username and its password as the SMTP Password.
- Choose where FluentSMTP keeps the details: Store in Database or Store in wp-config.php. With the second option you add
define( 'FLUENTMAIL_SMTP_USERNAME', 'website@yourdomain.com' );anddefine( 'FLUENTMAIL_SMTP_PASSWORD', 'your-mailbox-password' );towp-config.php. - Click Save Connection Settings. FluentSMTP connects to the server and shows any error right in the form.
- Open the Email Test tab, enter an address and click Send Test Email.
How to set up Post SMTP
- Install and activate Post SMTP under Plugins and Add Plugin.
- Click Post SMTP in the left menu and then Start the Wizard.
- Choose Other SMTP.
- Enter your mailbox address under From Email and the name recipients see under From Name. Turn on Force From Email and Force From Name.
- Enter
ljpc.emailas the Host Name, 465 or 587 as the Port, your full email address as the Username and the mailbox password as the Password. Post SMTP picks the encryption from the port: SMTPS on 465 and STARTTLS on 587. - Click Save and Continue.
- Enter an address you can check under Recipient Email Address, click Send Test Email and then Finish.
If you change anything later in the Post SMTP settings, check that Security is SMTPS with port 465 and STARTTLS with port 587. Under Authentication, choose Login or Plain: those are the two methods our mail server supports.
The test fails: what does the error mean?
When a test fails, each plugin shows the message from the mail server or from PHP. Find the one that looks most like yours.
| Error (examples) | What is going on | What to do |
|---|---|---|
| SMTP Error: Could not authenticate; 535 5.7.0 Invalid credentials | The username or password is wrong | Use your full email address as the username and test the password in webmail. If it fails there too, set a new password in the customer portal and enter it in the plugin. |
| SMTP Error: Could not connect to SMTP host; Connection timed out; Could not connect to SSL | Port and encryption do not match, or the server name is wrong | Enter ljpc.email and use 465 with SSL or 587 with TLS, as in the table above. |
| A certificate error, such as certificate verify failed or did not match expected CN | The server name is not ljpc.email, for example mail.yourdomain.com or your previous host's server | Enter ljpc.email as the SMTP server. |
| 554 5.7.0 The limit on the number of allowed outgoing messages was exceeded | The mailbox reached its hourly sending limit | See email sending limit. |
| Invalid "Reply-To" e-mail address (Post SMTP) | A visitor typed an invalid email address in your form, for example ending in gmail.con. Post SMTP does not send that one message. | Your SMTP settings are fine. Read the submission in your site, if your form stores submissions. |
More errors and what they mean are in email client errors. They apply to an SMTP plugin as well.
Do not leave a plugin retrying with a wrong password. After many failed sign-ins our mail server temporarily blocks the IP address they come from, and for a plugin that is the server your website runs on. How that protection works is explained in what is fail2ban.
The test succeeds, but the email does not arrive or lands in spam? Check the recipient's spam folder and check SPF, DKIM and DMARC, as described in contact form not sending email.
Keep your website sending
- New mailbox password? Update it in the plugin straight away, or in
wp-config.phpif you keep it there. - Moving your website or email? Check the SMTP server and username in the plugin after the move. If your site comes from another host, replace that host's details with those of your mailbox at LJPc.
- Check the log. If your plugin has a log (Email Log or Email Logs), it shows per message whether it was sent and which error the server returned.
- Mind the sending limit. Everything your site sends through the mailbox counts towards that mailbox's limit. If your shop sends a lot of order emails, see email sending limit for how to ask for more.
What LJPc hosting takes care of
- One server name for every domain,
ljpc.email, with a valid certificate that every web server trusts. - If your domain's DNS is with us, SPF, DKIM and DMARC are already in place, also for the email from your website.
- Stuck? Open a support ticket in the customer portal. Include your website, the email address in the plugin, the plugin you use and the exact error from the test. We can then see in our mail server logs whether the plugin signed in and why an attempt was refused.
Frequently asked questions
Do I need an SMTP plugin to send email from WordPress?
No. With LJPc hosting your website already sends email through our outgoing mail servers. An SMTP plugin gives you a fixed sender address, a test button and the error from the mail server when a message does not go out.
Which port should I use in my SMTP plugin, 465 or 587?
Both work. Use port 465 with SSL (called SMTPS in Post SMTP) or port 587 with TLS (STARTTLS in Post SMTP). A port with the wrong encryption ends in a timeout or a connection error.
Can I use my own mailbox, such as info@, for the plugin?
You can, but a separate mailbox for your website works better, for example website@ on your domain. Your site keeps sending when you change the password of your own mailbox, and the password stored in your site only opens that one mailbox.
Does email sent by my website over SMTP show up in the Sent folder?
No. An SMTP plugin only sends and does not save a copy in the Sent folder of the mailbox. To see what your site sent, use the plugin log if it has one.
Can I use a different sender address than the mailbox in the plugin?
Use the mailbox address, so replies and bounces come back somewhere you read them. A sender on another domain, such as a Gmail address, fails the checks at the receiving end. Put a visitor address in the reply-to field of your form instead.
Why does the test email work while my form email does not arrive?
The cause is usually in the notification settings of the form, such as an old or wrong recipient address. With Post SMTP, an invalid email address typed by a visitor also stops that one message. Check whether the submission is stored in your site and check the recipient address of your form.