3.0.0 • Published 6 years ago

@atlas.js/nodemailer v3.0.0

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
6 years ago

@atlas.js/nodemailer

A nodemailer-based mailing service for @atlas.js.

Installation

npm i @atlas.js/nodemailer

Usage

import { Atlas } from '@atlas.js/atlas'
import * as Nodemailer from '@atlas.js/nodemailer'

const atlas = new Atlas({
  config: {
    services: {
      email: {
        // The transport module to be used
        transport: require('nodemailer-ses-transport'),
        // Alternatively, just pass the module's name
        transport: 'nodemailer-ses-transport',
        // These options are passed to the transport module unmodified, so go
        // read the transport's docs as to what you can set here!
        options: {},
        // An array of plugins to add to nodemailer
        plugins: [{
          // Nodemailer's event to which the plugin should be added
          event: 'compile',
          // The plugin module to use
          plugin: require('nodemailer-html-to-text'),
          // Alternatively, just pass the module's name
          plugin: 'nodemailer-html-to-text',
          // These options are passed directly to the plugin function
          options: {},
        }]
      }
    }
  }
})
atlas.service('email', Nodemailer.Service)
await atlas.start()

// The email service is now available here:
atlas.services.email

In addition to having the standard, callback-based sendMail() function available, you can use a custom async send() method:

await atlas.services.email.send({ to: 'test@example.com' })

License

See the LICENSE file for information.

3.0.0

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.1.0-alpha.8

6 years ago

2.1.0-alpha.7

6 years ago

2.1.0-alpha.6

6 years ago

2.1.0-alpha.5

7 years ago

2.1.0-alpha.4

7 years ago

2.1.0-alpha.3

7 years ago

2.1.0-alpha.2

7 years ago

2.1.0-alpha.1

7 years ago

2.1.0-alpha.0

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.3.0

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.2

8 years ago