Member-only story

Send emails using Strapi

Nikhil Nanjappa
3 min readSep 1, 2018

--

If you’re reading this article, I’m assuming you have heard of or worked with Strapi, an open-source NodeJS Content Management Framework to build APIs. If not familiar, you can visit their homepage to get an idea. This guide also requires you to have a generated Strapi project (currently v3.0.0-alpha.14). If not already generated, you can quickly get started here to generate one.

In addition to creating & managing APIs, Strapi also provides loads of additional tools named plugins to aid in your development. One such built-in plugin is the Email plugin which as you guessed is used to shoot out emails. In this article, I will be showing you how to integrate the Email plugin to your Strapi project to send emails.

Note: If using v3.0.0-beta, the plugins folder has now been moved into node_modules. Follow this doc for more info.

Also, list of all current free and premium plugins can be found here.

Establishing some technical details before we start — we will be using Strapi’s default email provider (local email system) which as I mentioned is built-in or already installed in every generated project. If you want to use another provider, you would need to first install the corresponding npm package. You can check npmjs.com for all the email providers list.

Let’s dive into it!

Email API (already exists)

By default strapi exposes the /email endpoint which internally uses the Email plugin.

--

--

Nikhil Nanjappa
Nikhil Nanjappa

Written by Nikhil Nanjappa

Experienced Full-Stack Developer who loves sharing knowledge. Gaming & Music addict. Always grateful and looking for new experiences in life.

Responses (5)