{"action":"created","issue":{"url":"https://api.github.com/repos/kootenpv/yagmail/issues/5","labels_url":"https://api.github.com/repos/kootenpv/yagmail/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/kootenpv/yagmail/issues/5/comments","events_url":"https://api.github.com/repos/kootenpv/yagmail/issues/5/events","html_url":"https://github.com/kootenpv/yagmail/issues/5","id":87161169,"number":5,"title":"Attachments corrupted","user":{"login":"BusinessTec","id":8062907,"avatar_url":"https://avatars.githubusercontent.com/u/8062907?v=3","gravatar_id":"","url":"https://api.github.com/users/BusinessTec","html_url":"https://github.com/BusinessTec","followers_url":"https://api.github.com/users/BusinessTec/followers","following_url":"https://api.github.com/users/BusinessTec/following{/other_user}","gists_url":"https://api.github.com/users/BusinessTec/gists{/gist_id}","starred_url":"https://api.github.com/users/BusinessTec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BusinessTec/subscriptions","organizations_url":"https://api.github.com/users/BusinessTec/orgs","repos_url":"https://api.github.com/users/BusinessTec/repos","events_url":"https://api.github.com/users/BusinessTec/events{/privacy}","received_events_url":"https://api.github.com/users/BusinessTec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-11T00:55:08Z","updated_at":"2015-06-11T19:57:23Z","closed_at":null,"body":"Following my tests on 'from' issue, I added attachments to the mail message using contents. I realized that almost  all of them are coming corrupted (xslx, docx, pdf, zip -after changing extension to pass smtp security). \r\nI believe I tested this option with older version a few days ago - but I am not sure about file formats used at that time.\r\nUsing the latest version of yagmail from 10/6/2015."},"comment":{"url":"https://api.github.com/repos/kootenpv/yagmail/issues/comments/111259136","html_url":"https://github.com/kootenpv/yagmail/issues/5#issuecomment-111259136","issue_url":"https://api.github.com/repos/kootenpv/yagmail/issues/5","id":111259136,"user":{"login":"BusinessTec","id":8062907,"avatar_url":"https://avatars.githubusercontent.com/u/8062907?v=3","gravatar_id":"","url":"https://api.github.com/users/BusinessTec","html_url":"https://github.com/BusinessTec","followers_url":"https://api.github.com/users/BusinessTec/followers","following_url":"https://api.github.com/users/BusinessTec/following{/other_user}","gists_url":"https://api.github.com/users/BusinessTec/gists{/gist_id}","starred_url":"https://api.github.com/users/BusinessTec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BusinessTec/subscriptions","organizations_url":"https://api.github.com/users/BusinessTec/orgs","repos_url":"https://api.github.com/users/BusinessTec/repos","events_url":"https://api.github.com/users/BusinessTec/events{/privacy}","received_events_url":"https://api.github.com/users/BusinessTec/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T19:57:23Z","updated_at":"2015-06-11T19:57:23Z","body":"The note on changing extension was only related to zip file (it was blocked on smtp with zip extension). The others are being send OK but files are delivered corrupted. \r\nI can be easily reproduced by sending .docx, xlsx, pdf files. They worked fine before sending, but while opening received ones an error is reported."}}