🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

@netlify/plugin-emails

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package version was removed
This package version has been unpublished, mostly likely due to security reasons

@netlify/plugin-emails

Scans the /email directory and sends email templates to the email service

1.0.1-developer-preview.0
unpublished
Version published
Weekly downloads
2.4K
15.1%
Maintainers
19
Weekly downloads
 
Created

Netlify Emails Plugin

🚧 Note: This plugin is pre-release software. Until version 1.0.0 is released, its API could change at any time.

The Netlify emails build plugin which is responsible for creating a serverless function to handle email requests, populating them with the provided templates and sending them using the specified email API provider.

Enabling the plugin

Either add it to the netlify.toml as follows:

[[plugins]]
  package = "@netlify/emails-plugin"

Or via the Netlify app.

Configuration

The following environment variables are required in order for the emails function to handle requests:

Variable NameDescriptionRequired
NETLIFY_EMAILS_PROVIDER"mailgun" | "sendgrid" | "postmark"Yes
NETLIFY_EMAILS_SECRETThe unique secret used to authenticate a request is genuineYes
NETLIFY_EMAILS_PROVIDER_API_KEYThe API key issued by the email providerYes
NETLIFY_EMAILS_MAILGUN_DOMAINIf the provider is set to Mailgun, the domain must be setNo
NETLIFY_EMAILS_DIRECTORY_OVERRIDEIf set, this will override the default directory ./emails when looking for templatesNo

FAQs

Package last updated on 07 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts