mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
refactor: Authentication service.
This commit is contained in:
15
server/src/loaders/mail.ts
Normal file
15
server/src/loaders/mail.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user