0.2.1 • Published 1 year ago

sendmail2 v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Sendmail2

Sendmail2 - Send Mail to Somewhere You Want

Sendmail2 is a package that you can create a transport of nodemailer(^6.6.1) or send emails directly.

Installation

You can install Sendmail2 using npm, yarn, or pnpm.

# npm
npm i sendmail2
# yarn
yarn add sendmail2
# pnpm
pnpm add sendmail2

Usage

  • Create a transport of nodemailer
import * as sendmail2 from 'sendmail2';
import nodemailer from 'nodemailer';

const transport = new sendmail2.Transport();
const transporter = nodemailer.createTransport(transport);
transporter.sendMail({
  from: 'foo@example.com',
  to: 'bar@example.com',
  subject: 'Sendmail2',
  text: 'Send mail 2 u!',
});
  • Send an email directly
import * as sendmail2 from 'sendmail2';

const sender = new sendmail2.Sender();
sender.send({
  from: 'foo@example.com',
  to: 'bar@example.com',
  subject: 'Sendmail2',
  text: 'Send mail 2 u!',
});

Inspiration

The package is inspired by sendmail.

Contributing

Contributing is welcome!

License

MIT

Links

GitHub, npm, yarn

0.2.1

1 year ago

0.2.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.3

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago