{"action":"opened","issue":{"url":"https://api.github.com/repos/MailCore/mailcore2/issues/1176","labels_url":"https://api.github.com/repos/MailCore/mailcore2/issues/1176/labels{/name}","comments_url":"https://api.github.com/repos/MailCore/mailcore2/issues/1176/comments","events_url":"https://api.github.com/repos/MailCore/mailcore2/issues/1176/events","html_url":"https://github.com/MailCore/mailcore2/issues/1176","id":94966181,"number":1176,"title":"HTMLRendererTemplateCallback leads to a malformed html","user":{"login":"tapouillo","id":1756753,"avatar_url":"https://avatars.githubusercontent.com/u/1756753?v=3","gravatar_id":"","url":"https://api.github.com/users/tapouillo","html_url":"https://github.com/tapouillo","followers_url":"https://api.github.com/users/tapouillo/followers","following_url":"https://api.github.com/users/tapouillo/following{/other_user}","gists_url":"https://api.github.com/users/tapouillo/gists{/gist_id}","starred_url":"https://api.github.com/users/tapouillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tapouillo/subscriptions","organizations_url":"https://api.github.com/users/tapouillo/orgs","repos_url":"https://api.github.com/users/tapouillo/repos","events_url":"https://api.github.com/users/tapouillo/events{/privacy}","received_events_url":"https://api.github.com/users/tapouillo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-14T14:59:23Z","updated_at":"2015-07-14T14:59:23Z","closed_at":null,"body":"Hi,\r\n\r\nWhen using a custom callback for the html rendering, maybe the TemplateCallBack should be like this\r\n\r\nmailcore::String * HTMLRendererTemplateCallback::templateForMessage(AbstractMessage * message)\r\n{\r\n    return MCSTR(\"{{BODY}}\");\r\n}\r\n(same for templateForEmbeddedMessage)\r\n\r\ninstead of returning :  return MCSTR(\"<div style=\\\"padding-bottom: 20px;\\\">{{HEADER}}</div><div>{{BODY}}</div>\");\r\n\r\nBecause even if we set our own call back to only returning the html body of the email, it adds a padding and header text.\r\nAlso, it leads to a bad html format, the html string looks like this: <div style=padding...></div> <html>blabalbla</html> </div>\r\n\r\n\r\n\r\n\r\n"}}