mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
15 lines
431 B
TypeScript
15 lines
431 B
TypeScript
import nodemailer from 'nodemailer';
|
|
import config from '@/../config/config';
|
|
|
|
// create reusable transporter object using the default SMTP transport
|
|
const transporter = nodemailer.createTransport({
|
|
host: config.mail.host,
|
|
port: config.mail.port,
|
|
secure: config.mail.secure, // true for 465, false for other ports
|
|
auth: {
|
|
user: config.mail.username,
|
|
pass: config.mail.password,
|
|
},
|
|
});
|
|
|
|
export default transporter; |