{"action":"closed","issue":{"url":"https://api.github.com/repos/WadeShuler/yii2-sendgrid/issues/1","repository_url":"https://api.github.com/repos/WadeShuler/yii2-sendgrid","labels_url":"https://api.github.com/repos/WadeShuler/yii2-sendgrid/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/WadeShuler/yii2-sendgrid/issues/1/comments","events_url":"https://api.github.com/repos/WadeShuler/yii2-sendgrid/issues/1/events","html_url":"https://github.com/WadeShuler/yii2-sendgrid/issues/1","id":295313818,"number":1,"title":"Add getErrors() function to Message object","user":{"login":"WadeShuler","id":9557392,"avatar_url":"https://avatars1.githubusercontent.com/u/9557392?v=4","gravatar_id":"","url":"https://api.github.com/users/WadeShuler","html_url":"https://github.com/WadeShuler","followers_url":"https://api.github.com/users/WadeShuler/followers","following_url":"https://api.github.com/users/WadeShuler/following{/other_user}","gists_url":"https://api.github.com/users/WadeShuler/gists{/gist_id}","starred_url":"https://api.github.com/users/WadeShuler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WadeShuler/subscriptions","organizations_url":"https://api.github.com/users/WadeShuler/orgs","repos_url":"https://api.github.com/users/WadeShuler/repos","events_url":"https://api.github.com/users/WadeShuler/events{/privacy}","received_events_url":"https://api.github.com/users/WadeShuler/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-07T22:18:17Z","updated_at":"2018-02-12T22:28:25Z","closed_at":"2018-02-12T22:28:25Z","author_association":"OWNER","body":"It would make more sense to handle like so:\r\n\r\n    $message = $mailer->compose()->setSubject($this->subject);\r\n    if ( ! $message->send() ) {\r\n        $this->errorMessages = $message->getErrors();\r\n        return false;\r\n    }\r\n\r\nCurrently, the Mailer object has the `getErrors()` function. This means we currently would have to do it like this: `Yii::$app->mailer->getErrors()`\r\n\r\nEven if this is just a pass-through function to the Mailer object."}}
{"actor":{"display_login":"WadeShuler"}}