New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@iterout/email-sender-module

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iterout/email-sender-module

Email sender module

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Email Sender Module

Email senders with html template engine for node.js backend app.

Installation

npm install @iterout/email-sender-module

Configuration

Create one or multiple EmailConfig to associate email creadential and templates directories. The template search priority is set according to the folder order. The module also provides an utility to create the configuration (createEmailConfig())

import { createEmailConfig } from "@iterout/email-sender-module";

const emailConfig: EmailConfig = createEmailConfig(
  emailTemplatesDirectories: [LIST_OF_DRECTORIES_PATH],
  sender: [EMAIL_SENDER],
  password: [EMAIL_SENDER_PASSWORD],
  service: [EMAIL_SERVICE]
)

Html template

In the template directory you can put your html files. Files can contains binding varibles which will resolve during the runtime.

<h1>Hello, ${variable}</h1>

Functions

SendEmail

Send email with specified EmailConfig to specified address using specified template.

import { sendEmail } from "@iterout/email-sender-module";

sendEmail(
  config: [EMAIL_CONFIG],
  to: [RECIPIENT],
  subject: [SUBJECT],
  templateName: [NAME_OF_HTML_TEMPLATE],
  variables: [VARIABLES]
)

FAQs

Package last updated on 24 Mar 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc