{"action":"created","issue":{"url":"https://api.github.com/repos/kootenpv/yagmail/issues/43","repository_url":"https://api.github.com/repos/kootenpv/yagmail","labels_url":"https://api.github.com/repos/kootenpv/yagmail/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/kootenpv/yagmail/issues/43/comments","events_url":"https://api.github.com/repos/kootenpv/yagmail/issues/43/events","html_url":"https://github.com/kootenpv/yagmail/issues/43","id":152392358,"number":43,"title":"smtplib.SMTPServerDisconnected: please run connect()","user":{"login":"steve2072","id":6030119,"avatar_url":"https://avatars.githubusercontent.com/u/6030119?v=3","gravatar_id":"","url":"https://api.github.com/users/steve2072","html_url":"https://github.com/steve2072","followers_url":"https://api.github.com/users/steve2072/followers","following_url":"https://api.github.com/users/steve2072/following{/other_user}","gists_url":"https://api.github.com/users/steve2072/gists{/gist_id}","starred_url":"https://api.github.com/users/steve2072/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steve2072/subscriptions","organizations_url":"https://api.github.com/users/steve2072/orgs","repos_url":"https://api.github.com/users/steve2072/repos","events_url":"https://api.github.com/users/steve2072/events{/privacy}","received_events_url":"https://api.github.com/users/steve2072/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-01T20:03:41Z","updated_at":"2016-05-01T20:32:21Z","closed_at":null,"body":"Hi. When trying to send with a mail within a with section and with a body and an HTML file attached, I have this error.\r\n\r\n```\r\nException ignored in: <bound method SMTP.__del__ of <yagmail.yagmail.SMTP object at 0x101f08c18>>\r\nTraceback (most recent call last):\r\n  File \"/Users/Steve/Library/Python/3.5/lib/python/site-packages/yagmail/yagmail.py\", line 388, in __del__\r\n    self.close()\r\n  File \"/Users/Steve/Library/Python/3.5/lib/python/site-packages/yagmail/yagmail.py\", line 131, in close\r\n    self.smtp.quit()\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/smtplib.py\", line 974, in quit\r\n    res = self.docmd(\"quit\")\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/smtplib.py\", line 419, in docmd\r\n    self.putcmd(cmd, args)\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/smtplib.py\", line 366, in putcmd\r\n    self.send(str)\r\n  File \"/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/smtplib.py\", line 358, in send\r\n    raise SMTPServerDisconnected('please run connect() first')\r\nsmtplib.SMTPServerDisconnected: please run connect() first\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/kootenpv/yagmail/issues/comments/216070103","html_url":"https://github.com/kootenpv/yagmail/issues/43#issuecomment-216070103","issue_url":"https://api.github.com/repos/kootenpv/yagmail/issues/43","id":216070103,"user":{"login":"kootenpv","id":2746227,"avatar_url":"https://avatars.githubusercontent.com/u/2746227?v=3","gravatar_id":"","url":"https://api.github.com/users/kootenpv","html_url":"https://github.com/kootenpv","followers_url":"https://api.github.com/users/kootenpv/followers","following_url":"https://api.github.com/users/kootenpv/following{/other_user}","gists_url":"https://api.github.com/users/kootenpv/gists{/gist_id}","starred_url":"https://api.github.com/users/kootenpv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kootenpv/subscriptions","organizations_url":"https://api.github.com/users/kootenpv/orgs","repos_url":"https://api.github.com/users/kootenpv/repos","events_url":"https://api.github.com/users/kootenpv/events{/privacy}","received_events_url":"https://api.github.com/users/kootenpv/received_events","type":"User","site_admin":false},"created_at":"2016-05-01T20:32:21Z","updated_at":"2016-05-01T20:32:21Z","body":"Hi, thanks for taking the time to post an issue. Could you provide some example code? I cannot reproduce by `with` + body + html file attached."}}