{ "info": { "author": "xepa4ep", "author_email": "vumhtam@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "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/Rustem/tornado-smtpclient.git", "keywords": "tornado,smtp,email,client,non blocking,async", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "tornsmtp", "package_url": "https://pypi.org/project/tornsmtp/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/tornsmtp/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Rustem/tornado-smtpclient.git" }, "release_url": "https://pypi.org/project/tornsmtp/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": 1647826, "releases": { "0.1.5": [ { "comment_text": "", "digests": { "md5": "eb699004cdb9c369d80aa05402143d35", "sha256": "4133e500685cd103a297262b9e07a9354a2c9ae8a84e27ee903d74d9ca250100" }, "downloads": -1, "filename": "tornsmtp-0.1.5.tar.gz", "has_sig": false, "md5_digest": "eb699004cdb9c369d80aa05402143d35", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5775, "upload_time": "2015-07-24T10:29:46", "url": "https://files.pythonhosted.org/packages/a8/7e/551b2b0943abe1aab0528f81b4fc7e61a2d947432e4beffab6a8744c218a/tornsmtp-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "eb699004cdb9c369d80aa05402143d35", "sha256": "4133e500685cd103a297262b9e07a9354a2c9ae8a84e27ee903d74d9ca250100" }, "downloads": -1, "filename": "tornsmtp-0.1.5.tar.gz", "has_sig": false, "md5_digest": "eb699004cdb9c369d80aa05402143d35", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5775, "upload_time": "2015-07-24T10:29:46", "url": "https://files.pythonhosted.org/packages/a8/7e/551b2b0943abe1aab0528f81b4fc7e61a2d947432e4beffab6a8744c218a/tornsmtp-0.1.5.tar.gz" } ] }