{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/7594","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/7594/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/7594/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/7594/events","html_url":"https://github.com/cakephp/cakephp/issues/7594","id":112675674,"number":7594,"title":"Way to disable base64 encode on CakeEmail","user":{"login":"watermark","id":1056975,"avatar_url":"https://avatars.githubusercontent.com/u/1056975?v=3","gravatar_id":"","url":"https://api.github.com/users/watermark","html_url":"https://github.com/watermark","followers_url":"https://api.github.com/users/watermark/followers","following_url":"https://api.github.com/users/watermark/following{/other_user}","gists_url":"https://api.github.com/users/watermark/gists{/gist_id}","starred_url":"https://api.github.com/users/watermark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watermark/subscriptions","organizations_url":"https://api.github.com/users/watermark/orgs","repos_url":"https://api.github.com/users/watermark/repos","events_url":"https://api.github.com/users/watermark/events{/privacy}","received_events_url":"https://api.github.com/users/watermark/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cakephp/cakephp/labels/email","name":"email","color":"FFFFFF"},{"url":"https://api.github.com/repos/cakephp/cakephp/labels/Enhancement","name":"Enhancement","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/51","html_url":"https://github.com/cakephp/cakephp/milestones/2.8.0","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/51/labels","id":1203674,"number":51,"title":"2.8.0","description":"New features and a backwards compatible API changes for 2.x","creator":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"open_issues":18,"closed_issues":20,"state":"open","created_at":"2015-07-12T01:55:56Z","updated_at":"2015-10-22T01:04:57Z","due_on":"2016-01-02T05:00:00Z","closed_at":null},"comments":2,"created_at":"2015-10-21T20:47:32Z","updated_at":"2015-10-22T13:26:52Z","closed_at":null,"body":"I'd like a way to disable the base64 encode of individual attachments in CakeEmail.\r\n\r\nI'm having a hard time finding actual documentation stating this, but I've tried everything I can to verify this.  It seems \".eml\" files are treated specially by at least a few email vendors.  They really want them encoded as plain text.\r\n\r\nIf I change the 2 lines (in the CakeEmail class) related to base64 encoding, the attachment works as expected."},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/150223037","html_url":"https://github.com/cakephp/cakephp/issues/7594#issuecomment-150223037","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/7594","id":150223037,"user":{"login":"watermark","id":1056975,"avatar_url":"https://avatars.githubusercontent.com/u/1056975?v=3","gravatar_id":"","url":"https://api.github.com/users/watermark","html_url":"https://github.com/watermark","followers_url":"https://api.github.com/users/watermark/followers","following_url":"https://api.github.com/users/watermark/following{/other_user}","gists_url":"https://api.github.com/users/watermark/gists{/gist_id}","starred_url":"https://api.github.com/users/watermark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watermark/subscriptions","organizations_url":"https://api.github.com/users/watermark/orgs","repos_url":"https://api.github.com/users/watermark/repos","events_url":"https://api.github.com/users/watermark/events{/privacy}","received_events_url":"https://api.github.com/users/watermark/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T13:26:52Z","updated_at":"2015-10-22T13:26:52Z","body":"I agree that it's necessary to base64 encode binary files.  I would like to see a method of controlling the encoding on a per attachment basis.  The method of setting the content-type that is already in place works fine for me.\r\n\r\nThunderbird seems to always use \"7bit\" encoding for \".eml\" files.  The headers that it seems to always use for the mime body part of the \".eml\" are:\r\nContent-Type: message/rfc822; name=\"FW: file.eml\"\r\nContent-Transfer-Encoding: 7bit\r\nContent-Disposition: attachment; filename=\"FW: file.eml\""}}