{"action":"opened","issue":{"url":"https://api.github.com/repos/pkp/pkp-lib/issues/4094","repository_url":"https://api.github.com/repos/pkp/pkp-lib","labels_url":"https://api.github.com/repos/pkp/pkp-lib/issues/4094/labels{/name}","comments_url":"https://api.github.com/repos/pkp/pkp-lib/issues/4094/comments","events_url":"https://api.github.com/repos/pkp/pkp-lib/issues/4094/events","html_url":"https://github.com/pkp/pkp-lib/issues/4094","id":364067893,"node_id":"MDU6SXNzdWUzNjQwNjc4OTM=","number":4094,"title":"MassMail fails if using mail:send callback","user":{"login":"terrasea2","id":25639689,"node_id":"MDQ6VXNlcjI1NjM5Njg5","avatar_url":"https://avatars2.githubusercontent.com/u/25639689?v=4","gravatar_id":"","url":"https://api.github.com/users/terrasea2","html_url":"https://github.com/terrasea2","followers_url":"https://api.github.com/users/terrasea2/followers","following_url":"https://api.github.com/users/terrasea2/following{/other_user}","gists_url":"https://api.github.com/users/terrasea2/gists{/gist_id}","starred_url":"https://api.github.com/users/terrasea2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terrasea2/subscriptions","organizations_url":"https://api.github.com/users/terrasea2/orgs","repos_url":"https://api.github.com/users/terrasea2/repos","events_url":"https://api.github.com/users/terrasea2/events{/privacy}","received_events_url":"https://api.github.com/users/terrasea2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-26T14:45:02Z","updated_at":"2018-09-26T14:45:02Z","closed_at":null,"author_association":"NONE","body":"If you use a plugin that uses the 'mail::send' hook which returns true to prevent the use of PKPs mailer, MassMail will only send one email in the batch.\r\n\r\n```$success = $success && MailTemplate::send(false);```\r\n\r\nWhere `$success` will return NULL for the first pass because of the code in `Mail::send`\r\n\r\n```if (HookRegistry::call('Mail::send', array($this))) return;```\r\n\r\nReturn true would be the obvious solution to this."}}
{"actor":{"display_login":"terrasea2"}}