{"action":"closed","issue":{"url":"https://api.github.com/repos/s-ichikawa/laravel-sendgrid-driver/issues/74","repository_url":"https://api.github.com/repos/s-ichikawa/laravel-sendgrid-driver","labels_url":"https://api.github.com/repos/s-ichikawa/laravel-sendgrid-driver/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/s-ichikawa/laravel-sendgrid-driver/issues/74/comments","events_url":"https://api.github.com/repos/s-ichikawa/laravel-sendgrid-driver/issues/74/events","html_url":"https://github.com/s-ichikawa/laravel-sendgrid-driver/issues/74","id":327267760,"node_id":"MDU6SXNzdWUzMjcyNjc3NjA=","number":74,"title":"Attachments with api, Use in Mailable","user":{"login":"davedriesmans","id":2736363,"node_id":"MDQ6VXNlcjI3MzYzNjM=","avatar_url":"https://avatars1.githubusercontent.com/u/2736363?v=4","gravatar_id":"","url":"https://api.github.com/users/davedriesmans","html_url":"https://github.com/davedriesmans","followers_url":"https://api.github.com/users/davedriesmans/followers","following_url":"https://api.github.com/users/davedriesmans/following{/other_user}","gists_url":"https://api.github.com/users/davedriesmans/gists{/gist_id}","starred_url":"https://api.github.com/users/davedriesmans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davedriesmans/subscriptions","organizations_url":"https://api.github.com/users/davedriesmans/orgs","repos_url":"https://api.github.com/users/davedriesmans/repos","events_url":"https://api.github.com/users/davedriesmans/events{/privacy}","received_events_url":"https://api.github.com/users/davedriesmans/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-29T10:51:56Z","updated_at":"2018-06-03T14:36:36Z","closed_at":"2018-06-03T14:36:36Z","author_association":"NONE","body":"I have `^1.2` set-up for a Laravel 5.4 app.\r\n\r\nOne thing that doesn't work are the attachments. This is the code:\r\n```\r\nreturn $this->from($this->fromEmail, $this->fromName)\r\n          ->view('emails.attend-notification')\r\n          ->with([\r\n                'firstname' => $this->attendee->firstname,\r\n                 'lastname' => $this->attendee->lastname,\r\n                 'attendeeTickets' => $this->attendeeTickets,\r\n             ])\r\n          ->attachData($pdfData, $filename, [\r\n                   'mime' => 'application/pdf',\r\n            ])\r\n           ->subject('subject')\r\n           ->sendgrid([\r\n                   'categories'  => ['pierrot'],\r\n                    'unique_args' => [\r\n                           'id'    =>  '123456789',\r\n                           \"section\"       => \"attendee_mail\",\r\n                   ]\r\n          ]);\r\n```\r\n\r\nWith `MAIL_DRIVER=sendgrid` it doesn't send the attachment,\r\nWith `MAIL_DRIVER=smtp` it doesn't send the unique_args\r\n\r\nNo errors in the logs..."}}
{"actor":{"display_login":"s-ichikawa"}}