{"action":"closed","issue":{"url":"https://api.github.com/repos/scrapy/scrapy/issues/1296","labels_url":"https://api.github.com/repos/scrapy/scrapy/issues/1296/labels{/name}","comments_url":"https://api.github.com/repos/scrapy/scrapy/issues/1296/comments","events_url":"https://api.github.com/repos/scrapy/scrapy/issues/1296/events","html_url":"https://github.com/scrapy/scrapy/issues/1296","id":87251785,"number":1296,"title":"Use scrapy.mail.MailSender is not able to quit after send mail in a stand alone script.","user":{"login":"lyjbupt","id":4222563,"avatar_url":"https://avatars.githubusercontent.com/u/4222563?v=3","gravatar_id":"","url":"https://api.github.com/users/lyjbupt","html_url":"https://github.com/lyjbupt","followers_url":"https://api.github.com/users/lyjbupt/followers","following_url":"https://api.github.com/users/lyjbupt/following{/other_user}","gists_url":"https://api.github.com/users/lyjbupt/gists{/gist_id}","starred_url":"https://api.github.com/users/lyjbupt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyjbupt/subscriptions","organizations_url":"https://api.github.com/users/lyjbupt/orgs","repos_url":"https://api.github.com/users/lyjbupt/repos","events_url":"https://api.github.com/users/lyjbupt/events{/privacy}","received_events_url":"https://api.github.com/users/lyjbupt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-11T07:55:41Z","updated_at":"2015-06-11T14:04:21Z","closed_at":"2015-06-11T14:04:21Z","body":"Example code as below, please help me out :)\r\n\r\nfrom twisted.internet import reactor\r\nfrom scrapy.mail import MailSender\r\n\r\ndef f():\r\n    pass\r\n\r\nmailer = MailSender(smtphost='xxx.yyy.com', mailfrom=noreply@yyy.com')\r\nmailer.send(to=[\"foobar@yyy.com\"], subject=\"Some subject\", body=\"Some body\")\r\n\r\nreactor.callLater(1,f)\r\nreactor.run()"}}