{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/internals/issues/31","repository_url":"https://api.github.com/repos/laravel/internals","labels_url":"https://api.github.com/repos/laravel/internals/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/laravel/internals/issues/31/comments","events_url":"https://api.github.com/repos/laravel/internals/issues/31/events","html_url":"https://github.com/laravel/internals/issues/31","id":143783742,"number":31,"title":"SparkPost Transaction Options","user":{"login":"djtarazona","id":337986,"avatar_url":"https://avatars.githubusercontent.com/u/337986?v=3","gravatar_id":"","url":"https://api.github.com/users/djtarazona","html_url":"https://github.com/djtarazona","followers_url":"https://api.github.com/users/djtarazona/followers","following_url":"https://api.github.com/users/djtarazona/following{/other_user}","gists_url":"https://api.github.com/users/djtarazona/gists{/gist_id}","starred_url":"https://api.github.com/users/djtarazona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djtarazona/subscriptions","organizations_url":"https://api.github.com/users/djtarazona/orgs","repos_url":"https://api.github.com/users/djtarazona/repos","events_url":"https://api.github.com/users/djtarazona/events{/privacy}","received_events_url":"https://api.github.com/users/djtarazona/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-03-27T07:28:07Z","updated_at":"2016-09-02T00:17:20Z","closed_at":null,"body":"I recently began testing SparkPost for transactional emails and noticed that it was rewriting all my URLs for click tracking and inserting a small image for open tracking.  While I think that is fine for marketing / campaign emails, I'd rather have those features disabled for transactional emails.\r\n\r\nTo disable these features, you need to include an `options` object in the JSON payload with the appropriate keys such as:\r\n\r\n```\r\n\"options\": {\r\n    \"open_tracking\": false,\r\n    \"click_tracking\": false,\r\n    \"transactional\": true\r\n}\r\n```\r\n\r\nThere isn't an easy way to do this — you must extend/override the [`send` method in SparkPostTransport](https://github.com/laravel/framework/blob/b62d55bb39479bbd955ca3512094db6d05f27f38/src/Illuminate/Mail/Transport/SparkPostTransport.php#L40).  I propose adding an `options` array to the [`sparkpost` service configuration](https://github.com/laravel/laravel/blob/d998b5bd0392f76dcaa461fdec919658947c2e65/config/services.php#L28).\r\n\r\n```\r\n'sparkpost' => [\r\n    'secret' => env('SPARKPOST_SECRET'),\r\n    'options' => [\r\n        'open_tracking' => false,\r\n        'click_tracking' => false,\r\n        'transactional' => true,\r\n    ],\r\n],\r\n```\r\n\r\nMaybe not adding this to the default `services.php` config, but at least supporting it?  I'd be happy to make this improvement and submit a pull request.  I feel like most users will send transactional email from Laravel and may want to opt-out of these features as well.  Thoughts?"},"comment":{"url":"https://api.github.com/repos/laravel/internals/issues/comments/244250113","html_url":"https://github.com/laravel/internals/issues/31#issuecomment-244250113","issue_url":"https://api.github.com/repos/laravel/internals/issues/31","id":244250113,"user":{"login":"helloiamlukas","id":15997450,"avatar_url":"https://avatars.githubusercontent.com/u/15997450?v=3","gravatar_id":"","url":"https://api.github.com/users/helloiamlukas","html_url":"https://github.com/helloiamlukas","followers_url":"https://api.github.com/users/helloiamlukas/followers","following_url":"https://api.github.com/users/helloiamlukas/following{/other_user}","gists_url":"https://api.github.com/users/helloiamlukas/gists{/gist_id}","starred_url":"https://api.github.com/users/helloiamlukas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helloiamlukas/subscriptions","organizations_url":"https://api.github.com/users/helloiamlukas/orgs","repos_url":"https://api.github.com/users/helloiamlukas/repos","events_url":"https://api.github.com/users/helloiamlukas/events{/privacy}","received_events_url":"https://api.github.com/users/helloiamlukas/received_events","type":"User","site_admin":false},"created_at":"2016-09-02T00:17:20Z","updated_at":"2016-09-02T00:17:20Z","body":"Any updates on this?"}}
{"actor":{"display_login":"helloiamlukas"}}