{"action":"closed","issue":{"url":"https://api.github.com/repos/niftylettuce/node-email-templates/issues/127","labels_url":"https://api.github.com/repos/niftylettuce/node-email-templates/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/niftylettuce/node-email-templates/issues/127/comments","events_url":"https://api.github.com/repos/niftylettuce/node-email-templates/issues/127/events","html_url":"https://github.com/niftylettuce/node-email-templates/issues/127","id":80998866,"number":127,"title":"html template required","user":{"login":"alexandrusavin","id":1612455,"avatar_url":"https://avatars.githubusercontent.com/u/1612455?v=3","gravatar_id":"","url":"https://api.github.com/users/alexandrusavin","html_url":"https://github.com/alexandrusavin","followers_url":"https://api.github.com/users/alexandrusavin/followers","following_url":"https://api.github.com/users/alexandrusavin/following{/other_user}","gists_url":"https://api.github.com/users/alexandrusavin/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandrusavin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandrusavin/subscriptions","organizations_url":"https://api.github.com/users/alexandrusavin/orgs","repos_url":"https://api.github.com/users/alexandrusavin/repos","events_url":"https://api.github.com/users/alexandrusavin/events{/privacy}","received_events_url":"https://api.github.com/users/alexandrusavin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-26T14:53:43Z","updated_at":"2015-05-28T08:20:45Z","closed_at":"2015-05-28T08:20:45Z","body":"Sometimes you might need to send a text only email (ex: business critical emails are usually send in plain-text format ... see amazon.com email address verification message). Now the library forces you to create the html version of the email. \r\nWhy not enforcing one of the two versions and trigger an error only when both are missing. It would still have utility even when you send text only messages as you would anyway use some kind of templating language (like ejs) to compile the message with fields like \"name\" or \"order details\" etc."}}