{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/carbon-analytics-common/pulls/comments/44873300","id":44873300,"diff_hunk":"@@ -63,8 +69,20 @@ public String getType() {\n                 resourceBundle.getString(EmailEventAdapterConstants.ADAPTER_MESSAGE_EMAIL_SUBJECT));\n         subject.setRequired(true);\n \n+\n+        //set format of the email\n+        Property format=new Property(EmailEventAdapterConstants.APAPTER_MESSAGE_EMAIL_TYPE);\n+        format.setDisplayName\n+                (resourceBundle.getString(EmailEventAdapterConstants.APAPTER_MESSAGE_EMAIL_TYPE));\n+        format.setRequired(false);\n+        format.setOptions(new String[]{\"text/plain\", \"text/html\"});","path":"components/event-publisher/event-output-adapters/org.wso2.carbon.event.output.adapter.email/src/main/java/org/wso2/carbon/event/output/adapter/email/EmailEventAdapterFactory.java","position":44,"original_position":44,"commit_id":"aa4749663edfe4cac3d89479423bad161b794dd7","original_commit_id":"aa4749663edfe4cac3d89479423bad161b794dd7","user":{"login":"kasungayan","id":11533672,"avatar_url":"https://avatars.githubusercontent.com/u/11533672?v=3","gravatar_id":"","url":"https://api.github.com/users/kasungayan","html_url":"https://github.com/kasungayan","followers_url":"https://api.github.com/users/kasungayan/followers","following_url":"https://api.github.com/users/kasungayan/following{/other_user}","gists_url":"https://api.github.com/users/kasungayan/gists{/gist_id}","starred_url":"https://api.github.com/users/kasungayan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasungayan/subscriptions","organizations_url":"https://api.github.com/users/kasungayan/orgs","repos_url":"https://api.github.com/users/kasungayan/repos","events_url":"https://api.github.com/users/kasungayan/events{/privacy}","received_events_url":"https://api.github.com/users/kasungayan/received_events","type":"User","site_admin":false},"body":"Fixed with 75cf32f","created_at":"2015-11-15T15:58:23Z","updated_at":"2015-11-15T15:58:23Z","html_url":"https://github.com/wso2/carbon-analytics-common/pull/29#discussion_r44873300","pull_request_url":"https://api.github.com/repos/wso2/carbon-analytics-common/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/wso2/carbon-analytics-common/pulls/comments/44873300"},"html":{"href":"https://github.com/wso2/carbon-analytics-common/pull/29#discussion_r44873300"},"pull_request":{"href":"https://api.github.com/repos/wso2/carbon-analytics-common/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/carbon-analytics-common/pulls/29","id":35307748,"html_url":"https://github.com/wso2/carbon-analytics-common/pull/29","diff_url":"https://github.com/wso2/carbon-analytics-common/pull/29.diff","patch_url":"https://github.com/wso2/carbon-analytics-common/pull/29.patch","issue_url":"https://api.github.com/repos/wso2/carbon-analytics-common/issues/29","number":29,"state":"closed","locked":false,"title":"HTML Templating Support for Emails using CEP Event-Publisher ","user":{"login":"kasungayan","id":11533672,"avatar_url":"https://avatars.githubusercontent.com/u/11533672?v=3","gravatar_id":"","url":"https://api.github.com/users/kasungayan","html_url":"https://github.com/kasungayan","followers_url":"https://api.github.com/users/kasungayan/followers","following_url":"https://api.github.com/users/kasungayan/following{/other_user}","gists_url":"https://api.github.com/users/kasungayan/gists{/gist_id}","starred_url":"https://api.github.com/users/kasungayan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasungayan/subscriptions","organizations_url":"https://api.github.com/users/kasungayan/orgs","repos_url":"https://api.github.com/users/kasungayan/repos","events_url":"https://api.github.com/users/kasungayan/events{/privacy}","received_events_url":"https://api.github.com/users/kasungayan/received_events","type":"User","site_admin":false},"body":"Extending the current email output adapter by enabling HTML format when sending email as events using Javax Mail API. \r\n\r\nAdding new dynamic adapter property(Email Body Type) to Email output adapter definition. \r\n\r\nApply relevant configuration changes to output-event-adapters.xml file with respect to SMTP properties and Thread Pool properties. ","created_at":"2015-05-13T09:17:34Z","updated_at":"2015-11-15T15:58:23Z","closed_at":"2015-05-18T09:43:54Z","merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wso2/carbon-analytics-common/pulls/29/commits","review_comments_url":"https://api.github.com/repos/wso2/carbon-analytics-common/pulls/29/comments","review_comment_url":"https://api.github.com/repos/wso2/carbon-analytics-common/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/carbon-analytics-common/issues/29/comments","statuses_url":"https://api.github.com/repos/wso2/carbon-analytics-common/statuses/aa4749663edfe4cac3d89479423bad161b794dd7","head":{"label":"kasungayan:emailAdapter","ref":"emailAdapter","sha":"aa4749663edfe4cac3d89479423bad161b794dd7","user":{"login":"kasungayan","id":11533672,"avatar_url":"https://avatars.githubusercontent.com/u/11533672?v=3","gravatar_id":"","url":"https://api.github.com/users/kasungayan","html_url":"https://github.com/kasungayan","followers_url":"https://api.github.com/users/kasungayan/followers","following_url":"https://api.github.com/users/kasungayan/following{/other_user}","gists_url":"https://api.github.com/users/kasungayan/gists{/gist_id}","starred_url":"https://api.github.com/users/kasungayan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasungayan/subscriptions","organizations_url":"https://api.github.com/users/kasungayan/orgs","repos_url":"https://api.github.com/users/kasungayan/repos","events_url":"https://api.github.com/users/kasungayan/events{/privacy}","received_events_url":"https://api.github.com/users/kasungayan/received_events","type":"User","site_admin":false},"repo":{"id":34252321,"name":"carbon-analytics-common","full_name":"kasungayan/carbon-analytics-common","owner":{"login":"kasungayan","id":11533672,"avatar_url":"https://avatars.githubusercontent.com/u/11533672?v=3","gravatar_id":"","url":"https://api.github.com/users/kasungayan","html_url":"https://github.com/kasungayan","followers_url":"https://api.github.com/users/kasungayan/followers","following_url":"https://api.github.com/users/kasungayan/following{/other_user}","gists_url":"https://api.github.com/users/kasungayan/gists{/gist_id}","starred_url":"https://api.github.com/users/kasungayan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasungayan/subscriptions","organizations_url":"https://api.github.com/users/kasungayan/orgs","repos_url":"https://api.github.com/users/kasungayan/repos","events_url":"https://api.github.com/users/kasungayan/events{/privacy}","received_events_url":"https://api.github.com/users/kasungayan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kasungayan/carbon-analytics-common","description":"","fork":true,"url":"https://api.github.com/repos/kasungayan/carbon-analytics-common","forks_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/forks","keys_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/teams","hooks_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/hooks","issue_events_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/issues/events{/number}","events_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/events","assignees_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/assignees{/user}","branches_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/branches{/branch}","tags_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/tags","blobs_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/git/refs{/sha}","trees_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/statuses/{sha}","languages_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/languages","stargazers_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/stargazers","contributors_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/contributors","subscribers_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/subscribers","subscription_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/subscription","commits_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/commits{/sha}","git_commits_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/git/commits{/sha}","comments_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/comments{/number}","issue_comment_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/issues/comments{/number}","contents_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/contents/{+path}","compare_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/merges","archive_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/downloads","issues_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/issues{/number}","pulls_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/pulls{/number}","milestones_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/milestones{/number}","notifications_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/labels{/name}","releases_url":"https://api.github.com/repos/kasungayan/carbon-analytics-common/releases{/id}","created_at":"2015-04-20T09:48:23Z","updated_at":"2015-04-20T09:48:27Z","pushed_at":"2015-05-15T12:24:40Z","git_url":"git://github.com/kasungayan/carbon-analytics-common.git","ssh_url":"git@github.com:kasungayan/carbon-analytics-common.git","clone_url":"https://github.com/kasungayan/carbon-analytics-common.git","svn_url":"https://github.com/kasungayan/carbon-analytics-common","homepage":null,"size":3829,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wso2:master","ref":"master","sha":"84ffb63f19e0f1c276e8960bdaa423bdfb05d713","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":31999455,"name":"carbon-analytics-common","full_name":"wso2/carbon-analytics-common","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/carbon-analytics-common","description":"","fork":false,"url":"https://api.github.com/repos/wso2/carbon-analytics-common","forks_url":"https://api.github.com/repos/wso2/carbon-analytics-common/forks","keys_url":"https://api.github.com/repos/wso2/carbon-analytics-common/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/carbon-analytics-common/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/carbon-analytics-common/teams","hooks_url":"https://api.github.com/repos/wso2/carbon-analytics-common/hooks","issue_events_url":"https://api.github.com/repos/wso2/carbon-analytics-common/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/carbon-analytics-common/events","assignees_url":"https://api.github.com/repos/wso2/carbon-analytics-common/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/carbon-analytics-common/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/carbon-analytics-common/tags","blobs_url":"https://api.github.com/repos/wso2/carbon-analytics-common/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/carbon-analytics-common/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/carbon-analytics-common/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/carbon-analytics-common/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/carbon-analytics-common/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/carbon-analytics-common/languages","stargazers_url":"https://api.github.com/repos/wso2/carbon-analytics-common/stargazers","contributors_url":"https://api.github.com/repos/wso2/carbon-analytics-common/contributors","subscribers_url":"https://api.github.com/repos/wso2/carbon-analytics-common/subscribers","subscription_url":"https://api.github.com/repos/wso2/carbon-analytics-common/subscription","commits_url":"https://api.github.com/repos/wso2/carbon-analytics-common/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/carbon-analytics-common/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/carbon-analytics-common/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/carbon-analytics-common/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/carbon-analytics-common/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/carbon-analytics-common/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/carbon-analytics-common/merges","archive_url":"https://api.github.com/repos/wso2/carbon-analytics-common/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/carbon-analytics-common/downloads","issues_url":"https://api.github.com/repos/wso2/carbon-analytics-common/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/carbon-analytics-common/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/carbon-analytics-common/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/carbon-analytics-common/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/carbon-analytics-common/labels{/name}","releases_url":"https://api.github.com/repos/wso2/carbon-analytics-common/releases{/id}","created_at":"2015-03-11T05:08:43Z","updated_at":"2015-05-08T12:25:51Z","pushed_at":"2015-11-12T16:58:10Z","git_url":"git://github.com/wso2/carbon-analytics-common.git","ssh_url":"git@github.com:wso2/carbon-analytics-common.git","clone_url":"https://github.com/wso2/carbon-analytics-common.git","svn_url":"https://github.com/wso2/carbon-analytics-common","homepage":null,"size":15554,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":1,"forks":29,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/carbon-analytics-common/pulls/29"},"html":{"href":"https://github.com/wso2/carbon-analytics-common/pull/29"},"issue":{"href":"https://api.github.com/repos/wso2/carbon-analytics-common/issues/29"},"comments":{"href":"https://api.github.com/repos/wso2/carbon-analytics-common/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/carbon-analytics-common/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/carbon-analytics-common/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/carbon-analytics-common/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/carbon-analytics-common/statuses/aa4749663edfe4cac3d89479423bad161b794dd7"}}}}