🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@open-source-initiative/notify-email

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

@open-source-initiative/notify-email

Nodemailer wrapper for simple "send email" cases

latest
Source
npmnpm
Version
1.0.7
Version published
Maintainers
1
Created
Source

notify-email-library

Nodemailer wrapper to conveiently help setup emails.

Get started

run the following command in your project root directory

npm i @open-source-initiative/notify-email

Usage

import * as Notify from '@open-source-initiative/notify-email';

const configs = Notify.EmailConfigs.buildBasicConfigs({ username: 'username@mail.com', password: 'xxxxxxxx', host: 'mail.com' }, {/** Valid Nodemailer config options*/ })

const Email = new Notify.Email(configs);

const sendEmail = async () => {

    /**
     * @params { valid nodemailer send options }
    */
    await Email.sendEmail({
        from: `My Company Name <info@mail.com>`,
        to: 'client@mail.com',
        subject: "Test Email",
        html: `<h1>Notify::Email::Hello world</h1>`
    });

}

Support

Email: [leemlwando@gmail.com] Mobile: +260975247994

Keywords

Notify

FAQs

Package last updated on 15 Mar 2024

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