@samagra-x/uci-adapters-nodemailer
v1.0.2
Published
A nodemailer email provider library for [@samagra-x/uci-adapters-factory](https://github.com/PraVriShti/packages/tree/main/packages/adapters/nodemailer)
Downloads
308
Maintainers
Keywords
Readme
Nodejs Custom SMTP Provider
A nodemailer email provider library for @samagra-x/uci-adapters-factory
Taken from: @novu/stateless
Usage
import { NodemailerProvider } from '@novu/nodemailer';
const adapter = AdapterFactory.getAdapter({
type: 'NodeMailer',
config: {
from: process.env.NODEMAILER_FROM_EMAIL,
host: process.env.NODEMAILER_HOST,
user: process.env.NODEMAILER_USERNAME,
password: process.env.NODEMAILER_PASSWORD,
port: process.env.NODEMAILER_PORT,
secure: process.env.NODEMAILER_SECURE,
}
});
You can read more details of the different possible configurations in Nodemailer documentation