forwardemail / email-templates

Create, preview (browser/iOS Simulator), and send custom email templates for Node.js. Made for @forwardemail, @ladjs, @cabinjs, @spamscanner, and @breejs.
https://forwardemail.net/docs/send-emails-with-node-js-javascript
MIT License
3.66k stars 339 forks source link

Erreur non dev environments #365

Closed nithramus closed 5 years ago

nithramus commented 5 years ago

I just updated to the last email-templates version. When my NODE_ENV is set to "test" or "development" returned object is: { from: 'KeobizTest < test@keobiz.fr >', to: 'success@simulator.amazonses.com', attachments: [], subject: 'subject', html: '<!DOCTYPE html>\n<html lang="en">\n <head>\n <body>test variable\n </body>\n </head>\n</html>', text: 'text', }

On other environments: { from: 'KeobizTest < test@keobiz.fr >', to: 'success@simulator.amazonses.com', attachments: [], subject: 'subject', html: <!DOCTYPE html>\n<html lang="en">\n <head>\n <body>test variable\n </body>\n </head>\n</html>', text: '<!DOCTYPE html>\n<html lang="en">\n <head>\n <body>test variable\n </body>\n </head>\n</html>' } --> It look like the fields "text" is not well rendered on non dev environnement

niftylettuce commented 5 years ago

Please provide a reproducible example if you still have this issue