{ "info": { "author": "Mosky", "author_email": "mosky.tw@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "Postbox\n=======\n\nIt makes sending mail easier. The main features:\n\n1. It allows you specify SMTP headers by keyword arguments.\n2. Support interactive prompt for username or password.\n3. Support optional `with` statement.\n\nInstallation\n------------\n\nYou can install it via PyPI,\n\n::\n\n sudo pip install postbox\n\nor download it manually.\n\nExamples\n--------\n\nIt is an example which sends a mail from Python Shell.\n\n::\n\n >>> from postbox import Postbox, Gmail\n\n >>> gmail = Postbox(host='smtp.google.com:587') # or gmail = Gmail()\n username? mosky.bot@gmail.com\n password? \n\n >>> gmail.send(\n ... to = ['mosky.tw@gmail.com', 'mosky.liu@pinkoi.com'],\n ... bcc = 'mosky@ubuntu-tw.org',\n ... subject = 'Test from Python Shell',\n ... body = 'It is used postbox to send. :)'\n ... )\n ... \n\n >>> gmail.close()\n >>>\n\nYou can find more examples `here\n`_.\n\nDocumentation\n-------------\n\nThe ``Postbox`` or ``Gmail`` accepts the following keyword arguments:\n\n1. ``host``: the hostname of your SMTP server. ex. 'smtp.google.com' or\n 'smtp.google.com:587'\n2. ``port``: the port number of your SMTP server.\n3. ``user``: the username.\n4. ``password``: the password.\n5. ``tls``: use tls or not.\n6. ``prompt_user``: prompt string if you don't specified ``user``.\n7. ``prompt_password``: prompt string if you don't specified ``password``.\n8. ``debuglevel``: the debuglevel.\n9. ``dry_run``: don't send the mail out.\n\nThe all keyword arguments to ``send`` will be translated into SMTP headers,\nexcept the ``body`` is the body of this mail. If you don't specify ``from_``, it\ntakes the username as default. The iterable but not string will be joined to a\nstring by comma.", "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/moskytw/postbox", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "postbox", "package_url": "https://pypi.org/project/postbox/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/postbox/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/moskytw/postbox" }, "release_url": "https://pypi.org/project/postbox/0.1/", "requires_dist": null, "requires_python": null, "summary": "It makes sending emails easier with Python.", "version": "0.1" }, "last_serial": 779415, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "d3003b7dd5ff556091caf024aaaf65f1", "sha256": "6ae669a9ba95200773fe84912ad9f7b4bf9a879e88a03b69ce7daedfcd8833a8" }, "downloads": -1, "filename": "postbox-0.1.tar.gz", "has_sig": false, "md5_digest": "d3003b7dd5ff556091caf024aaaf65f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2723, "upload_time": "2013-06-25T15:08:23", "url": "https://files.pythonhosted.org/packages/c6/dd/e61eb34a80d335931d738ddf6a890af597d3fbd6eeb4cf7d225706f7a651/postbox-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d3003b7dd5ff556091caf024aaaf65f1", "sha256": "6ae669a9ba95200773fe84912ad9f7b4bf9a879e88a03b69ce7daedfcd8833a8" }, "downloads": -1, "filename": "postbox-0.1.tar.gz", "has_sig": false, "md5_digest": "d3003b7dd5ff556091caf024aaaf65f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2723, "upload_time": "2013-06-25T15:08:23", "url": "https://files.pythonhosted.org/packages/c6/dd/e61eb34a80d335931d738ddf6a890af597d3fbd6eeb4cf7d225706f7a651/postbox-0.1.tar.gz" } ] }