Closed duard closed 7 years ago
How can I send mails in development mode ? I try this config but I only saw my emails in my console and not receive them in my gmail :
import config from '../../config/config'; const nodemailer = require('nodemailer'); const EmailTemplate = require('email-templates'); const transporter = nodemailer.createTransport({ service: 'gmail', port: 587, secure: false, auth: { user: config.mail.user, pass: config.mail.pass } }); const emailEngine = new EmailTemplate({ message: { from: 'goiabadasamarelinhas@gmail.com' }, transport: transporter, preview: false, });
Thanks.
The solution is use send: true
const emailEngine = new EmailTemplate({ message: { from: 'goiabadasamarelinhas@gmail.com' }, transport: transporter, preview: false, send : true });
How can I send mails in development mode ? I try this config but I only saw my emails in my console and not receive them in my gmail :
Thanks.