You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know I am not supposed to ask use-case questions here as described here, but I am having no success elsewhere, plus if there is no answer to my question, this could become a feature request.
Currently, in mailmason a template with no Layout set, fills both HTML and Text versions of the email template in postmarkapp.
How do I create a template in mailmason so the HTML field in postmark will be empty, and Text set?
constpathToTemplates="./dist/postmark-templates"constfiles=fs.readdirSync(pathToTemplates);files.forEach(directory=>{consttemplateDir=path.join(pathToTemplates,directory)constmetaFile=JSON.parse(fs.readFileSync(path.join(templateDir,'meta.json'),'utf8'));if(!metaFile.LayoutTemplate){// if LayoutTemplate is not set, then delete the HTML contentfs.unlinkSync(path.join(templateDir,'content.html'))}});
Run npm run push-postmark
Now if template hasn't got LayoutTemplate set, mailmason will push only the text version to postmarkapp.
It would be great to have this feature by default.
I know I am not supposed to ask use-case questions here as described here, but I am having no success elsewhere, plus if there is no answer to my question, this could become a feature request.
Currently, in mailmason a template with no Layout set, fills both HTML and Text versions of the email template in postmarkapp.
How do I create a template in mailmason so the
HTML
field in postmark will be empty, andText
set?That is important for creating small size ticket emails without bloating customer service management service.
The text was updated successfully, but these errors were encountered: