{"action":"created","comment":{"url":"https://api.github.com/repos/abhinaykrupa/1s/pulls/comments/195464573","pull_request_review_id":128807581,"id":195464573,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NTQ2NDU3Mw==","diff_hunk":"@@ -159,9 +166,32 @@ public function sendAlertsToUsers()\n     /**\n      * this function send the alerts with 10 sec delay\n      */\n-    public function emailAlert($alertId,$toEmail,$subject,$message,$userId,$categoryId)\n+    public function emailAlert($alertId,$toEmail,$subject,$message,$userId,$categoryId,$selectSMTP)\n     {\n         if(ENVIRONMENT == 'production') {\n+            if($selectSMTP==\"even\"){\n+                $config = Array(\n+                                'protocol'  => SMTP_PROTOCOL,\n+                                'charset'   => SMTP_CHARSET,\n+                                'mailtype'  => SMTP_MAILTYPE,\n+                                'newline'   => SMTP_NEWLINE,\n+                                'smtp_host' => SMTP_HOST_MXLOGIN,\n+                                'smtp_port' => SMTP_PORT_MXLOGIN, \n+                                'smtp_user' => SMTP_USER_MXLOGIN,\n+                                'smtp_pass' => SMTP_PASS_MXLOGIN,\n+                               );\n+            }else{\n+                $config = Array(\n+                                'protocol'  => SMTP_PROTOCOL,\n+                                'charset'   => SMTP_CHARSET,\n+                                'mailtype'  => SMTP_MAILTYPE,\n+                                'newline'   => SMTP_NEWLINE,\n+                                'smtp_host' => SMTP_HOST_AWS_SES,\n+                                'smtp_port' => SMTP_PORT_AWS_SES, \n+                                'smtp_user' => SMTP_USER_AWS_SES,\n+                                'smtp_pass' => SMTP_PASS_AWS_SES,\n+                               );\n+            }","path":"application/controllers/Cron_job.php","position":63,"original_position":63,"commit_id":"0d4b2533857e6816c97d5ffd042388251012095c","original_commit_id":"0d4b2533857e6816c97d5ffd042388251012095c","user":{"login":"abhinaykrupa","id":2201321,"node_id":"MDQ6VXNlcjIyMDEzMjE=","avatar_url":"https://avatars3.githubusercontent.com/u/2201321?v=4","gravatar_id":"","url":"https://api.github.com/users/abhinaykrupa","html_url":"https://github.com/abhinaykrupa","followers_url":"https://api.github.com/users/abhinaykrupa/followers","following_url":"https://api.github.com/users/abhinaykrupa/following{/other_user}","gists_url":"https://api.github.com/users/abhinaykrupa/gists{/gist_id}","starred_url":"https://api.github.com/users/abhinaykrupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhinaykrupa/subscriptions","organizations_url":"https://api.github.com/users/abhinaykrupa/orgs","repos_url":"https://api.github.com/users/abhinaykrupa/repos","events_url":"https://api.github.com/users/abhinaykrupa/events{/privacy}","received_events_url":"https://api.github.com/users/abhinaykrupa/received_events","type":"User","site_admin":false},"body":"move this logic else where and make it more generic so we can just call a method to get the stmp for other emails that we gona write in the future","created_at":"2018-06-14T15:19:44Z","updated_at":"2018-06-14T15:23:04Z","html_url":"https://github.com/abhinaykrupa/1s/pull/38#discussion_r195464573","pull_request_url":"https://api.github.com/repos/abhinaykrupa/1s/pulls/38","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/abhinaykrupa/1s/pulls/comments/195464573"},"html":{"href":"https://github.com/abhinaykrupa/1s/pull/38#discussion_r195464573"},"pull_request":{"href":"https://api.github.com/repos/abhinaykrupa/1s/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/abhinaykrupa/1s/pulls/38","id":194901331,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0OTAxMzMx","html_url":"https://github.com/abhinaykrupa/1s/pull/38","diff_url":"https://github.com/abhinaykrupa/1s/pull/38.diff","patch_url":"https://github.com/abhinaykrupa/1s/pull/38.patch","issue_url":"https://api.github.com/repos/abhinaykrupa/1s/issues/38","number":38,"state":"open","locked":false,"title":"Ses","user":{"login":"sureshpegadapelli","id":36496389,"node_id":"MDQ6VXNlcjM2NDk2Mzg5","avatar_url":"https://avatars0.githubusercontent.com/u/36496389?v=4","gravatar_id":"","url":"https://api.github.com/users/sureshpegadapelli","html_url":"https://github.com/sureshpegadapelli","followers_url":"https://api.github.com/users/sureshpegadapelli/followers","following_url":"https://api.github.com/users/sureshpegadapelli/following{/other_user}","gists_url":"https://api.github.com/users/sureshpegadapelli/gists{/gist_id}","starred_url":"https://api.github.com/users/sureshpegadapelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sureshpegadapelli/subscriptions","organizations_url":"https://api.github.com/users/sureshpegadapelli/orgs","repos_url":"https://api.github.com/users/sureshpegadapelli/repos","events_url":"https://api.github.com/users/sureshpegadapelli/events{/privacy}","received_events_url":"https://api.github.com/users/sureshpegadapelli/received_events","type":"User","site_admin":false},"body":"Multiple smtp servers","created_at":"2018-06-14T13:52:56Z","updated_at":"2018-06-14T15:23:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"abhinaykrupa","id":2201321,"node_id":"MDQ6VXNlcjIyMDEzMjE=","avatar_url":"https://avatars3.githubusercontent.com/u/2201321?v=4","gravatar_id":"","url":"https://api.github.com/users/abhinaykrupa","html_url":"https://github.com/abhinaykrupa","followers_url":"https://api.github.com/users/abhinaykrupa/followers","following_url":"https://api.github.com/users/abhinaykrupa/following{/other_user}","gists_url":"https://api.github.com/users/abhinaykrupa/gists{/gist_id}","starred_url":"https://api.github.com/users/abhinaykrupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhinaykrupa/subscriptions","organizations_url":"https://api.github.com/users/abhinaykrupa/orgs","repos_url":"https://api.github.com/users/abhinaykrupa/repos","events_url":"https://api.github.com/users/abhinaykrupa/events{/privacy}","received_events_url":"https://api.github.com/users/abhinaykrupa/received_events","type":"User","site_admin":false},"assignees":[{"login":"abhinaykrupa","id":2201321,"node_id":"MDQ6VXNlcjIyMDEzMjE=","avatar_url":"https://avatars3.githubusercontent.com/u/2201321?v=4","gravatar_id":"","url":"https://api.github.com/users/abhinaykrupa","html_url":"https://github.com/abhinaykrupa","followers_url":"https://api.github.com/users/abhinaykrupa/followers","following_url":"https://api.github.com/users/abhinaykrupa/following{/other_user}","gists_url":"https://api.github.com/users/abhinaykrupa/gists{/gist_id}","starred_url":"https://api.github.com/users/abhinaykrupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhinaykrupa/subscriptions","organizations_url":"https://api.github.com/users/abhinaykrupa/orgs","repos_url":"https://api.github.com/users/abhinaykrupa/repos","events_url":"https://api.github.com/users/abhinaykrupa/events{/privacy}","received_events_url":"https://api.github.com/users/abhinaykrupa/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/abhinaykrupa/1s/pulls/38/commits","review_comments_url":"https://api.github.com/repos/abhinaykrupa/1s/pulls/38/comments","review_comment_url":"https://api.github.com/repos/abhinaykrupa/1s/pulls/comments{/number}","comments_url":"https://api.github.com/repos/abhinaykrupa/1s/issues/38/comments","statuses_url":"https://api.github.com/repos/abhinaykrupa/1s/statuses/0d4b2533857e6816c97d5ffd042388251012095c","head":{"label":"abhinaykrupa:ses","ref":"ses","sha":"0d4b2533857e6816c97d5ffd042388251012095c","user":{"login":"abhinaykrupa","id":2201321,"node_id":"MDQ6VXNlcjIyMDEzMjE=","avatar_url":"https://avatars3.githubusercontent.com/u/2201321?v=4","gravatar_id":"","url":"https://api.github.com/users/abhinaykrupa","html_url":"https://github.com/abhinaykrupa","followers_url":"https://api.github.com/users/abhinaykrupa/followers","following_url":"https://api.github.com/users/abhinaykrupa/following{/other_user}","gists_url":"https://api.github.com/users/abhinaykrupa/gists{/gist_id}","starred_url":"https://api.github.com/users/abhinaykrupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhinaykrupa/subscriptions","organizations_url":"https://api.github.com/users/abhinaykrupa/orgs","repos_url":"https://api.github.com/users/abhinaykrupa/repos","events_url":"https://api.github.com/users/abhinaykrupa/events{/privacy}","received_events_url":"https://api.github.com/users/abhinaykrupa/received_events","type":"User","site_admin":false},"repo":{"id":51018802,"node_id":"MDEwOlJlcG9zaXRvcnk1MTAxODgwMg==","name":"1s","full_name":"abhinaykrupa/1s","owner":{"login":"abhinaykrupa","id":2201321,"node_id":"MDQ6VXNlcjIyMDEzMjE=","avatar_url":"https://avatars3.githubusercontent.com/u/2201321?v=4","gravatar_id":"","url":"https://api.github.com/users/abhinaykrupa","html_url":"https://github.com/abhinaykrupa","followers_url":"https://api.github.com/users/abhinaykrupa/followers","following_url":"https://api.github.com/users/abhinaykrupa/following{/other_user}","gists_url":"https://api.github.com/users/abhinaykrupa/gists{/gist_id}","starred_url":"https://api.github.com/users/abhinaykrupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhinaykrupa/subscriptions","organizations_url":"https://api.github.com/users/abhinaykrupa/orgs","repos_url":"https://api.github.com/users/abhinaykrupa/repos","events_url":"https://api.github.com/users/abhinaykrupa/events{/privacy}","received_events_url":"https://api.github.com/users/abhinaykrupa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/abhinaykrupa/1s","description":null,"fork":false,"url":"https://api.github.com/repos/abhinaykrupa/1s","forks_url":"https://api.github.com/repos/abhinaykrupa/1s/forks","keys_url":"https://api.github.com/repos/abhinaykrupa/1s/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abhinaykrupa/1s/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abhinaykrupa/1s/teams","hooks_url":"https://api.github.com/repos/abhinaykrupa/1s/hooks","issue_events_url":"https://api.github.com/repos/abhinaykrupa/1s/issues/events{/number}","events_url":"https://api.github.com/repos/abhinaykrupa/1s/events","assignees_url":"https://api.github.com/repos/abhinaykrupa/1s/assignees{/user}","branches_url":"https://api.github.com/repos/abhinaykrupa/1s/branches{/branch}","tags_url":"https://api.github.com/repos/abhinaykrupa/1s/tags","blobs_url":"https://api.github.com/repos/abhinaykrupa/1s/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abhinaykrupa/1s/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abhinaykrupa/1s/git/refs{/sha}","trees_url":"https://api.github.com/repos/abhinaykrupa/1s/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abhinaykrupa/1s/statuses/{sha}","languages_url":"https://api.github.com/repos/abhinaykrupa/1s/languages","stargazers_url":"https://api.github.com/repos/abhinaykrupa/1s/stargazers","contributors_url":"https://api.github.com/repos/abhinaykrupa/1s/contributors","subscribers_url":"https://api.github.com/repos/abhinaykrupa/1s/subscribers","subscription_url":"https://api.github.com/repos/abhinaykrupa/1s/subscription","commits_url":"https://api.github.com/repos/abhinaykrupa/1s/commits{/sha}","git_commits_url":"https://api.github.com/repos/abhinaykrupa/1s/git/commits{/sha}","comments_url":"https://api.github.com/repos/abhinaykrupa/1s/comments{/number}","issue_comment_url":"https://api.github.com/repos/abhinaykrupa/1s/issues/comments{/number}","contents_url":"https://api.github.com/repos/abhinaykrupa/1s/contents/{+path}","compare_url":"https://api.github.com/repos/abhinaykrupa/1s/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abhinaykrupa/1s/merges","archive_url":"https://api.github.com/repos/abhinaykrupa/1s/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abhinaykrupa/1s/downloads","issues_url":"https://api.github.com/repos/abhinaykrupa/1s/issues{/number}","pulls_url":"https://api.github.com/repos/abhinaykrupa/1s/pulls{/number}","milestones_url":"https://api.github.com/repos/abhinaykrupa/1s/milestones{/number}","notifications_url":"https://api.github.com/repos/abhinaykrupa/1s/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abhinaykrupa/1s/labels{/name}","releases_url":"https://api.github.com/repos/abhinaykrupa/1s/releases{/id}","deployments_url":"https://api.github.com/repos/abhinaykrupa/1s/deployments","created_at":"2016-02-03T17:54:14Z","updated_at":"2018-06-12T20:24:56Z","pushed_at":"2018-06-14T13:52:57Z","git_url":"git://github.com/abhinaykrupa/1s.git","ssh_url":"git@github.com:abhinaykrupa/1s.git","clone_url":"https://github.com/abhinaykrupa/1s.git","svn_url":"https://github.com/abhinaykrupa/1s","homepage":null,"size":5452,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"abhinaykrupa:master","ref":"master","sha":"b8906aea7f51716354836e536f96c1a67bc00f36","user":{"login":"abhinaykrupa","id":2201321,"node_id":"MDQ6VXNlcjIyMDEzMjE=","avatar_url":"https://avatars3.githubusercontent.com/u/2201321?v=4","gravatar_id":"","url":"https://api.github.com/users/abhinaykrupa","html_url":"https://github.com/abhinaykrupa","followers_url":"https://api.github.com/users/abhinaykrupa/followers","following_url":"https://api.github.com/users/abhinaykrupa/following{/other_user}","gists_url":"https://api.github.com/users/abhinaykrupa/gists{/gist_id}","starred_url":"https://api.github.com/users/abhinaykrupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhinaykrupa/subscriptions","organizations_url":"https://api.github.com/users/abhinaykrupa/orgs","repos_url":"https://api.github.com/users/abhinaykrupa/repos","events_url":"https://api.github.com/users/abhinaykrupa/events{/privacy}","received_events_url":"https://api.github.com/users/abhinaykrupa/received_events","type":"User","site_admin":false},"repo":{"id":51018802,"node_id":"MDEwOlJlcG9zaXRvcnk1MTAxODgwMg==","name":"1s","full_name":"abhinaykrupa/1s","owner":{"login":"abhinaykrupa","id":2201321,"node_id":"MDQ6VXNlcjIyMDEzMjE=","avatar_url":"https://avatars3.githubusercontent.com/u/2201321?v=4","gravatar_id":"","url":"https://api.github.com/users/abhinaykrupa","html_url":"https://github.com/abhinaykrupa","followers_url":"https://api.github.com/users/abhinaykrupa/followers","following_url":"https://api.github.com/users/abhinaykrupa/following{/other_user}","gists_url":"https://api.github.com/users/abhinaykrupa/gists{/gist_id}","starred_url":"https://api.github.com/users/abhinaykrupa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhinaykrupa/subscriptions","organizations_url":"https://api.github.com/users/abhinaykrupa/orgs","repos_url":"https://api.github.com/users/abhinaykrupa/repos","events_url":"https://api.github.com/users/abhinaykrupa/events{/privacy}","received_events_url":"https://api.github.com/users/abhinaykrupa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/abhinaykrupa/1s","description":null,"fork":false,"url":"https://api.github.com/repos/abhinaykrupa/1s","forks_url":"https://api.github.com/repos/abhinaykrupa/1s/forks","keys_url":"https://api.github.com/repos/abhinaykrupa/1s/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abhinaykrupa/1s/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abhinaykrupa/1s/teams","hooks_url":"https://api.github.com/repos/abhinaykrupa/1s/hooks","issue_events_url":"https://api.github.com/repos/abhinaykrupa/1s/issues/events{/number}","events_url":"https://api.github.com/repos/abhinaykrupa/1s/events","assignees_url":"https://api.github.com/repos/abhinaykrupa/1s/assignees{/user}","branches_url":"https://api.github.com/repos/abhinaykrupa/1s/branches{/branch}","tags_url":"https://api.github.com/repos/abhinaykrupa/1s/tags","blobs_url":"https://api.github.com/repos/abhinaykrupa/1s/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abhinaykrupa/1s/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abhinaykrupa/1s/git/refs{/sha}","trees_url":"https://api.github.com/repos/abhinaykrupa/1s/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abhinaykrupa/1s/statuses/{sha}","languages_url":"https://api.github.com/repos/abhinaykrupa/1s/languages","stargazers_url":"https://api.github.com/repos/abhinaykrupa/1s/stargazers","contributors_url":"https://api.github.com/repos/abhinaykrupa/1s/contributors","subscribers_url":"https://api.github.com/repos/abhinaykrupa/1s/subscribers","subscription_url":"https://api.github.com/repos/abhinaykrupa/1s/subscription","commits_url":"https://api.github.com/repos/abhinaykrupa/1s/commits{/sha}","git_commits_url":"https://api.github.com/repos/abhinaykrupa/1s/git/commits{/sha}","comments_url":"https://api.github.com/repos/abhinaykrupa/1s/comments{/number}","issue_comment_url":"https://api.github.com/repos/abhinaykrupa/1s/issues/comments{/number}","contents_url":"https://api.github.com/repos/abhinaykrupa/1s/contents/{+path}","compare_url":"https://api.github.com/repos/abhinaykrupa/1s/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abhinaykrupa/1s/merges","archive_url":"https://api.github.com/repos/abhinaykrupa/1s/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abhinaykrupa/1s/downloads","issues_url":"https://api.github.com/repos/abhinaykrupa/1s/issues{/number}","pulls_url":"https://api.github.com/repos/abhinaykrupa/1s/pulls{/number}","milestones_url":"https://api.github.com/repos/abhinaykrupa/1s/milestones{/number}","notifications_url":"https://api.github.com/repos/abhinaykrupa/1s/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abhinaykrupa/1s/labels{/name}","releases_url":"https://api.github.com/repos/abhinaykrupa/1s/releases{/id}","deployments_url":"https://api.github.com/repos/abhinaykrupa/1s/deployments","created_at":"2016-02-03T17:54:14Z","updated_at":"2018-06-12T20:24:56Z","pushed_at":"2018-06-14T13:52:57Z","git_url":"git://github.com/abhinaykrupa/1s.git","ssh_url":"git@github.com:abhinaykrupa/1s.git","clone_url":"https://github.com/abhinaykrupa/1s.git","svn_url":"https://github.com/abhinaykrupa/1s","homepage":null,"size":5452,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/abhinaykrupa/1s/pulls/38"},"html":{"href":"https://github.com/abhinaykrupa/1s/pull/38"},"issue":{"href":"https://api.github.com/repos/abhinaykrupa/1s/issues/38"},"comments":{"href":"https://api.github.com/repos/abhinaykrupa/1s/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/abhinaykrupa/1s/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/abhinaykrupa/1s/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/abhinaykrupa/1s/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/abhinaykrupa/1s/statuses/0d4b2533857e6816c97d5ffd042388251012095c"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"abhinaykrupa"}}