Documentation

Visit Our xCloud Knowledge Base

Here is your one-stop source for in-depth articles, FAQs, and tutorials for you to excel at hosting & managing your websites.


How to Set Up SMTP for n8n with Environment in xCloud

When setting up a new n8n instance in xCloud, you may want to enable email functionality for sending notifications, password resets, and workflow messages. To do this, you can configure SMTP using environment variables. 

Follow the steps below to set up SMTP for n8n with environment so you can start sending emails reliably through your own mail server.

Step 1: Go to the Environment Dashboard #

Begin by logging into your xCloud account. Once logged in, navigate to your site dashboard and click on the n8n โ†’ Environment from the sidebar.

Set Up SMTP for n8n with Environment

Step 2: Configure SMTP Environment Variables #

Once you are on the n8n environment, just add the following variables with your SMTP server details:

N8N_EMAIL_MODE=smtp
N8N_SMTP_HOST=host.example.com
N8N_SMTP_PORT=587
N8N_SMTP_USER=username
N8N_SMTP_PASS=password
N8N_SMTP_SENDER=admin@mail.com
N8N_SMTP_SSL=false

Note: The SMTP configuration will only work if N8N_SMTP_SSL is set to false. It will not function correctly if you set this value to true.

Set Up SMTP for n8n

Step 2: Test Your SMTP Configuration #

After saving the environment settings, open the n8n dashboard. Look at the lower-left menu and click on Settings

Set Up SMTP for n8n

Then go to the Users tab from the sidebar. Click the Invite button to open a pop-up window.

In the pop-up, enter the user’s โ€˜Email addressโ€™ and โ€˜Roleโ€™. Then click the โ€˜Invite Userโ€™ button. This will trigger an email, helping you confirm that your SMTP setup works properly.

If your SMTP setup is correct, the user will receive an invitation email. If the email arrives, that means everything is working properly.

How to Add SMTP in Workflows #

If you want to send emails directly from within workflows, using environment variables is not enough. You will need to set up SMTP as a saved credential.

Open the โ€˜Overviewโ€™ section from the n8n sidebar. Then go to the โ€˜Credentialsโ€™ tab on the dashboard and click โ€˜Add First Credentialsโ€™.

A pop-up will appear. Fro. here, choose โ€˜SMTPโ€™ as the credential type.

You will now see a form. Fill out this form with the following details:

  • Host (your SMTP server address)
  • Port (usually 587 or 465)
  • User (your SMTP username)
  • Password (your SMTP password)

Fill in the required fields accordingly. Once done, click the Save button.

And thatโ€™s it. This is how easily your n8n instance could be fully configured to send emails using your specified SMTP server.

Still stuck? Contact our dedicated support team for any of your queries..

What are your feelings
Updated on June 25, 2025

Server Name

RAM

SSD

xCloud Provider Price/m
(For LTD users)

VULTR Price/m

DO Price/m

Newcomer

1GB

25GB

$4.50

$5.00

$6.00

Basic

2GB

55GB

$9.00

$10

$12.00

Standard

4GB

80GB

$18.00

$20

$24.00

Professional

8GB

160GB

$36.00

$40

$48.00

Business

16GB

320GB

$72.00

$80

$96.00

Server Name

RAM

SSD/NVMe

xCloud Provider Price/m
(For LTD users)

VULTR Price/m

DO Price/m

Lite

1GB

32GB

$5.40

$6.00

$8.00

Personal

2GB

88GB

$16.20

$18.00

$24.00

Growing

4GB

128GB

$21.60

$24.00

$32.00

Elite

8GB

256GB

$43.20

$48.00

$64.00

Titanium

8GB

384GB

$86.40

$96.00

$96.00

Ultimate

32GB

512GB

$172.80

$192.00

$192.00