1.3.0 • Published 2 months ago

@storecraft/mailer-smtp v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

SMTP proxy client for Node.js

Features

  • Send emails using a known smtp server
  • uses nodemailer under the hood
npm i @storecraft/mailer-smtp

Howto

import { MailerSmtpNode } from '@storecraft/mailer-smtp';

const mailer = new MailerSmtpNode(
  {
    host: "smtp.sendgrid.net",
    port: 465,
    secure: true, // true for 465, false for other ports
    auth: {
      user: 'apikey', // generated ethereal user
      pass: process.env.SEND_GRID_SECRET, // generated ethereal password
    },  
  }
);

let { success, native_response } = await mailer.email({
  from: {name: 'bob 👻', address: process.env.FROM_EMAIL }, // sender address
  to: [ { address: process.env.TO_EMAIL } ], // list of receivers
  subject: 'subject test', // Subject line
  text: 'plain text test', // plain text body
  html: '<p>html test</p>', // html body
});
Author: Tomer Shalev (tomer.shalev@gmail.com)
1.0.16

3 months ago

1.2.5

2 months ago

1.3.0

2 months ago

1.0.15

3 months ago

1.0.14

3 months ago

1.0.13

3 months ago

1.0.12

4 months ago

1.0.11

4 months ago

1.0.10

4 months ago

1.0.9

5 months ago

1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

7 months ago

1.0.5

8 months ago

1.0.2

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.1

9 months ago