{ "info": { "author": "Tam Vu", "author_email": "vumhtam@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Communications :: Email :: Email Clients (MUA)" ], "description": "Non-blocking smtp client to work with tornado web framework 4.0 and above\n\nThis library is a port of Python smtplib to tornado non-blocking IOstream implementation.\n\nThe below example was taken and modified from Python docs' example::\n\n #!/usr/bin/env python3\n\n from tornado_smtpclient import client \n\n from email.mime.multipart import MIMEMultipart\n from email.mime.text import MIMEText\n\n # create SMTP client\n s = client.SMTPAsync()\n yield s.connect('your.email.host',587)\n yield s.starttls()\n yield s.login('username', 'password')\n\n # me == my email address\n # you == recipient's email address\n me = \"my@email.com\"\n you = \"your@email.com\"\n\n # Create message container - the correct MIME type is multipart/alternative.\n msg = MIMEMultipart('alternative')\n msg['Subject'] = \"Link\"\n msg['From'] = me\n msg['To'] = you\n\n # Create the body of the message (a plain-text and an HTML version).\n text = \"Hi!\\nHow are you?\\nHere is the link you wanted:\\nhttp://www.python.org\"\n html = \"\"\"\\\n \n \n \n

Hi!
\n How are you?
\n Here is the link you wanted.\n

\n \n \n \"\"\"\n\n # Record the MIME types of both parts - text/plain and text/html.\n part1 = MIMEText(text, 'plain')\n part2 = MIMEText(html, 'html')\n\n # Attach parts into message container.\n # According to RFC 2046, the last part of a multipart message, in this case\n # the HTML message, is best and preferred.\n msg.attach(part1)\n msg.attach(part2)\n\n # sendmail function takes 3 arguments: sender's address, recipient's address\n # and message to send - here it is sent as one string.\n yield s.sendmail(me, you, msg.as_string())\n yield s.quit()", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/vuamitom/tornado-smtpclient", "keywords": "tornado,smtp,email,client,non blocking,async", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "tornado-smtpclient", "package_url": "https://pypi.org/project/tornado-smtpclient/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/tornado-smtpclient/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/vuamitom/tornado-smtpclient" }, "release_url": "https://pypi.org/project/tornado-smtpclient/0.1.5/", "requires_dist": null, "requires_python": null, "summary": "A non-blocking smtp client to work with tornado-based application", "version": "0.1.5" }, "last_serial": 1370032, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "844f5aeaea80e212dc6a3f6231f43262", "sha256": "00349ec87b464a3863b466414f02051306d87784467a4c547afac8568dee81a2" }, "downloads": -1, "filename": "tornado-smtpclient-0.1.0.tar.gz", "has_sig": false, "md5_digest": "844f5aeaea80e212dc6a3f6231f43262", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5739, "upload_time": "2014-08-12T10:25:14", "url": "https://files.pythonhosted.org/packages/2c/b5/5a4193dca4e3dae77f5c1053decb957ab3ef4dfdf29e3793392d228ffd12/tornado-smtpclient-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "8e847916af386cc4201ef4c84c305224", "sha256": "4d943fd91f2c6a866d90a5a9d4d6865d4cd96c890e5dde6f6fcc0366c181a0ef" }, "downloads": -1, "filename": "tornado-smtpclient-0.1.1.tar.gz", "has_sig": false, "md5_digest": "8e847916af386cc4201ef4c84c305224", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5738, "upload_time": "2014-08-14T10:42:44", "url": "https://files.pythonhosted.org/packages/71/f9/a9b46b8aa6fbf3c3f77766cfa3ec52b66cbf779875f63c86494aea4215b0/tornado-smtpclient-0.1.1.tar.gz" } ], "0.1.2": [], "0.1.3": [ { "comment_text": "", "digests": { "md5": "c83bf521b7890c14bd8e7a37f09fb4f4", "sha256": "c83516a05cb4bfa25a98822cb32fb9c8ac8b9ff1d0d070c7de1a330e3f90f8e8" }, "downloads": -1, "filename": "tornado-smtpclient-0.1.3.tar.gz", "has_sig": false, "md5_digest": "c83bf521b7890c14bd8e7a37f09fb4f4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5653, "upload_time": "2014-08-18T03:27:40", "url": "https://files.pythonhosted.org/packages/b9/de/94aa5b43dd7d15ab14e5416da238f92c0a583c7f8edac560dd06f1553126/tornado-smtpclient-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "f466b4bdcee1e864224c295bd4f57610", "sha256": "158b48bc5955ff7a63794d43fd74b1834ee8c553edc694d2737741e5cfc34146" }, "downloads": -1, "filename": "tornado-smtpclient-0.1.4.tar.gz", "has_sig": false, "md5_digest": "f466b4bdcee1e864224c295bd4f57610", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5643, "upload_time": "2014-08-18T03:29:44", "url": "https://files.pythonhosted.org/packages/6c/13/a71dd8b296dc7aaf8f72bae50f78c568dfb8d50e3a83ba0cb15789ca4ed5/tornado-smtpclient-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "875329155876b2f5d356e9a9ceb9a732", "sha256": "fb56bf593dcaa863305bff6d286ca8363065cb3ec5620da863b0d6539a9534dd" }, "downloads": -1, "filename": "tornado-smtpclient-0.1.5.tar.gz", "has_sig": false, "md5_digest": "875329155876b2f5d356e9a9ceb9a732", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5665, "upload_time": "2015-01-04T13:47:15", "url": "https://files.pythonhosted.org/packages/3a/8a/85b41b7f14d88da6e66bbff072de0297feca2bc5509f1f0c435fdfd5c744/tornado-smtpclient-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "875329155876b2f5d356e9a9ceb9a732", "sha256": "fb56bf593dcaa863305bff6d286ca8363065cb3ec5620da863b0d6539a9534dd" }, "downloads": -1, "filename": "tornado-smtpclient-0.1.5.tar.gz", "has_sig": false, "md5_digest": "875329155876b2f5d356e9a9ceb9a732", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5665, "upload_time": "2015-01-04T13:47:15", "url": "https://files.pythonhosted.org/packages/3a/8a/85b41b7f14d88da6e66bbff072de0297feca2bc5509f1f0c435fdfd5c744/tornado-smtpclient-0.1.5.tar.gz" } ] }