New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

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

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

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