1.0.23 • Published 1 month ago
@universal-packages/mailing-nodemailer v1.0.23
Mailing Nodemailer
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
Usesmtp
to all kind of configurations orses
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
1.0.23
1 month ago
1.0.19
2 months ago
1.0.18
2 months ago
1.0.17
2 months ago
1.0.22
2 months ago
1.0.21
2 months ago
1.0.20
2 months ago
1.0.16
2 months ago
1.0.15
3 months ago
1.0.14
3 months ago
1.0.11
4 months ago
1.0.13
4 months ago
1.0.12
4 months ago
1.0.9
4 months ago
1.0.10
4 months ago
1.0.8
4 months ago
1.0.2
8 months ago
1.0.1
8 months ago
1.0.7
6 months ago
1.0.6
6 months ago
1.0.5
6 months ago
1.0.4
7 months ago
1.0.3
8 months ago
1.0.0
1 year ago