@universal-packages/mailing-nodemailer
TypeScript icon, indicating that this package has built-in type declarations

1.0.23 • Public • Published

Mailing Nodemailer

npm version Testing codecov

Nodemailer engine for universal mailing-nodemailer.

Install

npm install @universal-packages/mailing-nodemailer

# If using SES
npm install @aws-sdk/client-ses
npm install @aws-sdk/credential-provider-node

NodemailerEngine

import { Mailing } from '@universal-packages/mailing-nodemailer'
import { NodemailerEngine } from '@universal-packages/mailing-nodemailer'

const mailing = new Mailing( engine: 'nodemailer', engineOptions: { transport: 'smtp', options: { host: 'smtp.com'} })

await mailing.prepare()

mailing.send({ subject: 'Email', extra: { headers: { HEADER: 'header' }}, from: 'universal@dev.com', to: 'david@packages.com', template: 'templates/email', locals: { name: 'Omar' } })

Options

  • transport smtp | ses default: smtp Use smtp to all kind of configurations or ses to automatically set it up and just pass options rafted to ses.

  • options Object All configurations available for transports.

    SES options:

    • apiVersion String
    • region String

Typescript

This library is developed in TypeScript and shipped fully typed.

Contributing

The development of this library happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving this library.

License

MIT licensed.

Readme

Keywords

none

Package Sidebar

Install

npm i @universal-packages/mailing-nodemailer

Weekly Downloads

63

Version

1.0.23

License

MIT

Unpacked Size

10.4 kB

Total Files

12

Last publish

Collaborators

  • omarandstuff