@universal-packages/mailing-nodemailer
v1.1.1
Published
Nodemailer engine for universal mailing-nodemailer.
Readme
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-nodeNodemailerEngine
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: '[email protected]', to: '[email protected]', template: 'templates/email', locals: { name: 'Omar' } })Options
transportsmtp | sesdefault: smtpUsesmtpto all kind of configurations orsesto automatically set it up and just pass options rafted to ses.optionsObjectAll configurations available for transports.SES options:
apiVersionStringregionString
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.
