Guest User

Untitled

a guest
Jun 27th, 2018
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. const nodemailer = require('nodemailer') // Importa o módulo principal
  2.  
  3. const transporter = nodemailer.createTransport({ // Configura os parâmetros de conexão com servidor.
  4. host: 'smtp.umbler.com',
  5. port: 547,
  6. secure: false,
  7. auth: {
  8. user: 'exemplo@gabrielrufino.com',
  9. pass: 'ex3mpl0'
  10. }
  11. })
  12.  
  13. const mailOptions = { // Define informações pertinentes ao E-mail que será enviado
  14. from: 'exemplo@gabrielrufino.com',
  15. to: 'contato@gabrielrufino.com',
  16. subject: 'Projeto de software',
  17. text: 'Hey Gabriel, preciso de um software. Quando podemos marcar um café?'
  18. }
Add Comment
Please, Sign In to add comment