- Author Hector Rodrigues da Silva
npm i or yarn
npm start or yarn start
const config = {
service: 'gmail',
auth: {
user: 'email',
pass: 'password'
},
}
module.exports = config;
const config = require('../config/service.config');
export const sendEmail = (req, res) => {
const mailOptions = {
from: config.auth.user,
to: '',
subject: '',
html: template
};
...