New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

malcomo

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

malcomo

all in one nodejs email library

latest
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

Fluent Mailer (All in one Node.js email client)

Usage Guide

Basic Usage

const mailer = Email
    .initialize()
    .from('sergio@email.com')
    .to('chitova@email.com')
    .subject('Hello World')
    .body('Hello World');

await mailer.send()

Mail Providers Integrations

  • SMTP: Send emails using SMTP
  • Mailgun: Send emails using Mailgun API
  • Sendgrid: Send emails using Sendgrid API
  • Mailtrap: Send emails using Mailtrap API

Maily Mailgun

Installation

npm install @fluent-maily/mailgun

Usage

Create an instance of the Mailgun provider

const provider = new MailgunProvider({
    domain: 'your-domain',
    apiKey: 'your-api-key'
});

Sending emails: You can initialize the Email client with the provider instance or set the provider instance after the Email client has been initialized as your default provider.

const result = await Email
    .initialize(provider)
    .from('sergio@email.com')
    .to('chitova@email.com')
    .subject('Hello World')
    .body('Hello World')
    .send();

// OR
Email.setDefaultProvider(provider);

Notes

  • If you would like to create your own email provider checkout the source code, all you need to do is implement the IMailProvider interface and you are good to go.
  • This package is still under development and is not ready for production use.

Keywords

fluent email

FAQs

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