Last active
June 27, 2018 14:39
-
-
Save gabrielrufino/191ddaf5318f3f9ecc822ea73b37958d to your computer and use it in GitHub Desktop.
Nodemailer: O pombo-correio do Node.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const nodemailer = require('nodemailer') // Importa o módulo principal | |
const transporter = nodemailer.createTransport({ // Configura os parâmetros de conexão com servidor. | |
host: 'smtp.umbler.com', | |
port: 547, | |
secure: false, | |
auth: { | |
user: '[email protected]', | |
pass: 'ex3mpl0' | |
} | |
}) | |
const mailOptions = { // Define informações pertinentes ao E-mail que será enviado | |
from: '[email protected]', | |
to: '[email protected]', | |
subject: 'Projeto de software', | |
text: 'Hey Gabriel, preciso de um software. Quando podemos marcar um café?' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment