Removed title in email

This commit is contained in:
vjrj 2018-01-22 22:37:52 +01:00
parent 51b97f751e
commit 3d246baabf

View file

@ -14,7 +14,8 @@ const sendEmail = (options, { resolve, reject }) => {
// basic: from, to/cc/bcc/replyTo, subject, html, text, // basic: from, to/cc/bcc/replyTo, subject, html, text,
// others: watchHtml, icalEvent, headers, attachments, mailComposer, inReplyTo, references, messageId // others: watchHtml, icalEvent, headers, attachments, mailComposer, inReplyTo, references, messageId
const opts = options; const opts = options;
opts.template = '<body><h2>{{appName}}</h2>{{{html}}}</body>'; // opts.template = '<body><h2>{{appName}}</h2>{{{html}}}</body>';
opts.template = '<body>{{{html}}}</body>';
opts.appName = i18n.t('AppName'); opts.appName = i18n.t('AppName');
// console.log(`Email options: ${JSON.stringify(opts)}`); // console.log(`Email options: ${JSON.stringify(opts)}`);
sendMail(opts, true); sendMail(opts, true);