DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Cover image for Send automated emails using n8n.io
Suchitra
Suchitra

Posted on • Updated on • Originally published at joingardens.com

Send automated emails using n8n.io

You will need

1 Terminal (ex- Git Bash)
2 Email ID

Step-By-Step Guide

Step 1: Install n8n using npm or npx

Install n8n locally on our system, use the below command.
npm install n8n -g

Alternative, If we just want to use n8n without downloading to a local machine, can use this command
npx n8n

In this guide, we will walk you through using npx.


Step 2: Copy the URL and paste it in the address bar

SS1

After pasting β€œhttp://localhost:5678/” in the address bar, we will get the n8n workflow page.

SS2


Now, we are in n8n workflow, where we can use various types of tools to automate the task. So, over here, we will be using the β€œsend email” node for sending the emails using this workflow.


Step 3: Select the β€œsend email” node

Go to the β€œ+” and in the search box type β€œsend email” then select it. After selecting the β€œsend email” node, the below window will pop up.
SS3

Note: Before putting the mail address in β€œfrom email” make sure that you have the correct and that email account on a service with SMTP support.

If we have a simple email account but in this case, we can also register our email account for SMTP service support by using some SMTP service provider's example elastic email.


Step 4: Create SMTP credentials

Go to Elastic-Email website and create SMTP credentials for your email. After creating, make sure to copy your password.

SS4

Now, we are ready to put all the required details for executing our β€œsend email” node.


Step 5: Put all the details for sending the mail from the β€œsend email” node

Click on β€œSMTP credential” and select the pencil icon and put all the details from the Elasic-Email SMTP details.

SS5


Note: In β€œfrom email” put only that email which you have provided for SMTP service.

1 Fill the β€œfrom email” address
2 β€œTo email” address
3 BCC and CSS email (Optional)
4 Subject
5 Text or HTML form message


SS6

If all goes fine then the response will be like the below image
SS7


Result

Note: Check the spam folder also, if you don’t find it in your inbox.

SS8

Thanks for follow along, hope it helps!

image

Top comments (2)

Collapse
 
nancydrewsub profile image
nancydrewsub

I have to say it really impressed me..thank you! @ retro bowl unblocked

Collapse
 
suchitra_13 profile image
Suchitra

What do you mean??

18 Useful Github Repositories Every Developer Should Bookmark

>> Check out this classic DEV post <<