{"action":"created","issue":{"url":"https://api.github.com/repos/mautic/mautic/issues/351","labels_url":"https://api.github.com/repos/mautic/mautic/issues/351/labels{/name}","comments_url":"https://api.github.com/repos/mautic/mautic/issues/351/comments","events_url":"https://api.github.com/repos/mautic/mautic/issues/351/events","html_url":"https://github.com/mautic/mautic/pull/351","id":71412802,"number":351,"title":"Prevents bad email addresses from killing campaign/batch email sends","user":{"login":"alanhartless","id":63312,"avatar_url":"https://avatars.githubusercontent.com/u/63312?v=3","gravatar_id":"","url":"https://api.github.com/users/alanhartless","html_url":"https://github.com/alanhartless","followers_url":"https://api.github.com/users/alanhartless/followers","following_url":"https://api.github.com/users/alanhartless/following{/other_user}","gists_url":"https://api.github.com/users/alanhartless/gists{/gist_id}","starred_url":"https://api.github.com/users/alanhartless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanhartless/subscriptions","organizations_url":"https://api.github.com/users/alanhartless/orgs","repos_url":"https://api.github.com/users/alanhartless/repos","events_url":"https://api.github.com/users/alanhartless/events{/privacy}","received_events_url":"https://api.github.com/users/alanhartless/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mautic/mautic/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/mautic/mautic/labels/Ready%20To%20Test","name":"Ready To Test","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mautic/mautic/milestones/3","html_url":"https://github.com/mautic/mautic/milestones/1.0.4","labels_url":"https://api.github.com/repos/mautic/mautic/milestones/3/labels","id":1071030,"number":3,"title":"1.0.4","description":"","creator":{"login":"alanhartless","id":63312,"avatar_url":"https://avatars.githubusercontent.com/u/63312?v=3","gravatar_id":"","url":"https://api.github.com/users/alanhartless","html_url":"https://github.com/alanhartless","followers_url":"https://api.github.com/users/alanhartless/followers","following_url":"https://api.github.com/users/alanhartless/following{/other_user}","gists_url":"https://api.github.com/users/alanhartless/gists{/gist_id}","starred_url":"https://api.github.com/users/alanhartless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanhartless/subscriptions","organizations_url":"https://api.github.com/users/alanhartless/orgs","repos_url":"https://api.github.com/users/alanhartless/repos","events_url":"https://api.github.com/users/alanhartless/events{/privacy}","received_events_url":"https://api.github.com/users/alanhartless/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":17,"state":"closed","created_at":"2015-04-16T17:21:28Z","updated_at":"2015-06-06T02:28:27Z","due_on":null,"closed_at":"2015-06-06T02:28:27Z"},"comments":3,"created_at":"2015-04-27T21:52:28Z","updated_at":"2015-07-01T14:38:06Z","closed_at":"2015-05-03T20:30:17Z","pull_request":{"url":"https://api.github.com/repos/mautic/mautic/pulls/351","html_url":"https://github.com/mautic/mautic/pull/351","diff_url":"https://github.com/mautic/mautic/pull/351.diff","patch_url":"https://github.com/mautic/mautic/pull/351.patch"},"body":"In relation to #329, if an email address is invalid, campaign processing and/or email batch sending will fail due to an uncaught exception. This PR adds helper functions that will catch and handle the exceptions so that processing should continue.\r\n\r\nTo test, create a lead with a bad email address then add them to a campaign that has a send email action and/or list and send an email to the list. An exception (see #329) will be thrown.  Apply the patch and then no exception should be thrown and all should continue working.\r\n\r\nAlso moved setSubject and addPart (for plainText) into MailHelper functions rather than having to mix between using $MailHelperObject directly and $MailHelperObject->message for basic email setup.\r\n\r\nAlso added a couple very minor UI tweaks (removed tilde from pending column and moved the ID of a emails in the email dropdown lists to be after the subject)."},"comment":{"url":"https://api.github.com/repos/mautic/mautic/issues/comments/117700213","html_url":"https://github.com/mautic/mautic/pull/351#issuecomment-117700213","issue_url":"https://api.github.com/repos/mautic/mautic/issues/351","id":117700213,"user":{"login":"jhrocha","id":5194011,"avatar_url":"https://avatars.githubusercontent.com/u/5194011?v=3","gravatar_id":"","url":"https://api.github.com/users/jhrocha","html_url":"https://github.com/jhrocha","followers_url":"https://api.github.com/users/jhrocha/followers","following_url":"https://api.github.com/users/jhrocha/following{/other_user}","gists_url":"https://api.github.com/users/jhrocha/gists{/gist_id}","starred_url":"https://api.github.com/users/jhrocha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhrocha/subscriptions","organizations_url":"https://api.github.com/users/jhrocha/orgs","repos_url":"https://api.github.com/users/jhrocha/repos","events_url":"https://api.github.com/users/jhrocha/events{/privacy}","received_events_url":"https://api.github.com/users/jhrocha/received_events","type":"User","site_admin":false},"created_at":"2015-07-01T14:38:05Z","updated_at":"2015-07-01T14:38:05Z","body":"It's not working on 1.1.2 and 1.1.3-dev versions"}}