Skip to content

HectorFront/micromailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
    };

    ...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published