Skip to content

Latest commit

 

History

History
44 lines (37 loc) · 679 Bytes

README.md

File metadata and controls

44 lines (37 loc) · 679 Bytes

Micromailer - Node.js (Open Source)

  • Author Hector Rodrigues da Silva

Install dependencies

npm i or yarn

Start Microservice

npm start or yarn start

FROM

config/service.config.js

const config = {
    service: 'gmail',
    auth: {
           user: 'email',
           pass: 'password'
       },
    } 

module.exports = config;

TO

controller/index.js

const config = require('../config/service.config');

export const sendEmail = (req, res) => {
    const mailOptions = {
        from: config.auth.user,
        to: '',
        subject: '',
        html: template
    };

    ...