nodemailer-file-transport A file transport for nodemailer const transport = fileTransport({ dir: './emails', ext: 'html', useSubject: true }); const transporter = nodemailer.createTransport(transport);