{ "info": { "author": "Jiaju.Chen", "author_email": "jiaju.chen@ele.me", "bugtrack_url": null, "classifiers": [], "description": "Posts\n======\n\nPosts is a Python library for send mail easily.\n\nInstallation\n------------\n\n- ``GitHub:`` https://github.com/importcjj/Posts\n- ``PyPi`` https://pypi.python.org/pypi/posts\n\n.. code:: sh\n\n\tpip install posts\n\nExamples\n--------\n\nHere is the first one to send a mail in **text**:\n\n.. code:: python\n\n\tfrom posts import Posts\n\n\tmail = Posts('smtp-server', 'your-username', 'your-passwd')\n\n\twith mail() as box:\n\t\tbox.text('to_address', subject='Subject', content='Content')\n\n\nPosts does not only support mail in **text** type, but also support **html**:\n\n.. code:: python\n\t\n\tbox.html('to_address', subject='Subject', content='Content')\n\n\nNext, we can send a mail with **attachments**:\n\n.. code:: python\n\n\twith mail() as box:\n\t\tbox.attach({'example.jpg': './example.jpg})\n\t\tbox.text('to_address', subject='Subject', content='Content')\n\n\nFinally, we can send the Html mail with image. and\nin the example, we also use a **alias** for the sender:\n\n.. code:: python\n\n\twith mail(alias='alias') as box:\n\t\tbox.attach({\n\t\t\t\t'example.jpg': './example.jpg'})\n\t\tbox.html(\n\t\t\trecipient='to_address', \n\t\t\tsubject='subject', \n\t\t\tcontent='')\n\n\nMaybe you need to send mail by ssl, don't worry:\n\n.. code:: python\n\n\twith mail(ssl=True) as box:\n\t\tbox.text('to_address', subject='Subject', content='Content')\n\nChain Useage\n------------\n\nJust try like this:\n\n.. code:: python\n\n\tbox.attach({'name1': '/path/to/file1',\n\t\t\t\t'name2': '/path/to/file2'}).\\\n\t\tattach({'name3': '/path/to/file3'}).\\\n\t\ttext('to_address', 'subject', 'content').\\\n\t\thtml(['to_address1', 'to_address2'], 'subject', 'content')\n\t\nThe text mail with attachment 1, 2, 3 will send to address,\nand then the html mail with attachment 1, 2, 3 will be sent ot\naddress1, address2 together.\n\nTODO\n----\n\n- add **alias** for recipient.\n- add **carbon copy**.\n- add usage without **with**.", "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/importcjj/Post", "keywords": null, "license": "BSD2", "maintainer": null, "maintainer_email": null, "name": "posts", "package_url": "https://pypi.org/project/posts/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/posts/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/importcjj/Post" }, "release_url": "https://pypi.org/project/posts/0.2.2/", "requires_dist": null, "requires_python": null, "summary": "A Python library for send mail easily", "version": "0.2.2" }, "last_serial": 1942948, "releases": { "0.1.1": [], "0.1.2": [ { "comment_text": "", "digests": { "md5": "0a71af52926b7a60c1504dc5886955e5", "sha256": "96fefb7ad776b89ae51f11c3d703dcee4339a7de7fe9c0975a1d29808da01312" }, "downloads": -1, "filename": "posts-0.1.2.tar.gz", "has_sig": false, "md5_digest": "0a71af52926b7a60c1504dc5886955e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2609, "upload_time": "2016-01-10T13:59:54", "url": "https://files.pythonhosted.org/packages/71/96/bee8067e5d28cbff4e8cc3d44d875ae6fc0677e27a800ad11051a4348993/posts-0.1.2.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "50bb3a19f00da9cb1cba0120a6cc9b8b", "sha256": "49bf3cb2f808f92df18ddb2d31d5bc4325344c960fa3e028a603e4cb9aff70d5" }, "downloads": -1, "filename": "posts-0.1.4-py2-none-any.whl", "has_sig": false, "md5_digest": "50bb3a19f00da9cb1cba0120a6cc9b8b", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4096, "upload_time": "2016-01-10T14:05:17", "url": "https://files.pythonhosted.org/packages/d4/2b/5bc02388113db36e6e7c4788466fdc4fb7f7963207c77f93af3f020718ed/posts-0.1.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1f8273ce7825d654dcebbbf08f877bba", "sha256": "26a6bded303fe7a63f3fb16cb3ea2a4bc7526cb0303b2c2c34d0a24b8cd3bac5" }, "downloads": -1, "filename": "posts-0.1.4.tar.gz", "has_sig": false, "md5_digest": "1f8273ce7825d654dcebbbf08f877bba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2618, "upload_time": "2016-01-10T14:04:39", "url": "https://files.pythonhosted.org/packages/9c/39/1a31240728aa9aa634c3f330477a1bc63aad7a5b0047563832ff90f87068/posts-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "a15ebd411fa8c17bb8cb04fa7d7778a7", "sha256": "ea1abb3e72d68363c93ae071eaf0982b6622d737398872c2eaca7a3326172de5" }, "downloads": -1, "filename": "posts-0.1.5-py2-none-any.whl", "has_sig": false, "md5_digest": "a15ebd411fa8c17bb8cb04fa7d7778a7", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4097, "upload_time": "2016-01-10T14:06:16", "url": "https://files.pythonhosted.org/packages/84/65/226cad1fda0fc7fd2cfd54bc57e3dfe0df61c0206bc0b1951ab5c78f77fd/posts-0.1.5-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "55c75b8fc1eceb8097df25361ce13fd1", "sha256": "155d02148847fe8f5ce3961f5bf98cf64bb8ebeaf8b8731dc7f4232d56749cec" }, "downloads": -1, "filename": "posts-0.1.5.tar.gz", "has_sig": false, "md5_digest": "55c75b8fc1eceb8097df25361ce13fd1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2609, "upload_time": "2016-01-10T14:05:44", "url": "https://files.pythonhosted.org/packages/80/65/4815b60c961d01bad27a8e7ce51bd24e89c95b391cd95795ee6738686d01/posts-0.1.5.tar.gz" } ], "0.1.6": [], "0.1.7": [ { "comment_text": "", "digests": { "md5": "97b48dc214351ee27d546e102b3c3f40", "sha256": "855e70fb9535f9c6bcd4cfed1fbf6fe9eac5bcc3c9fb6f4dc56dafca011bf6e3" }, "downloads": -1, "filename": "posts-0.1.7-py2-none-any.whl", "has_sig": false, "md5_digest": "97b48dc214351ee27d546e102b3c3f40", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4433, "upload_time": "2016-01-10T16:03:00", "url": "https://files.pythonhosted.org/packages/43/d5/3e57baac37090f647552b106702af4d26dd54a0390c5555d9243de29c179/posts-0.1.7-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "15b0aa1d8fcb9b0a857de76f3dd58684", "sha256": "bca02f4943d74b92ffe5e3a64cf2d4e6b8b57bb2233c793917cbe5c78d64ce75" }, "downloads": -1, "filename": "posts-0.1.7.tar.gz", "has_sig": false, "md5_digest": "15b0aa1d8fcb9b0a857de76f3dd58684", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2857, "upload_time": "2016-01-10T16:02:44", "url": "https://files.pythonhosted.org/packages/d3/cd/bec44537ada0862c2a485f3c388a181fe63a97ee7155ee8045be772eb1e1/posts-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "ea2dfaae5f43735547841ab129092242", "sha256": "c1b2ec96e52e5d3ce63b0b6b7e5be6c6f109f6a72c9a0832645e5eec6f86220a" }, "downloads": -1, "filename": "posts-0.1.8-py2-none-any.whl", "has_sig": false, "md5_digest": "ea2dfaae5f43735547841ab129092242", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4436, "upload_time": "2016-01-10T16:04:28", "url": "https://files.pythonhosted.org/packages/5e/98/54b165f48d7c3e7a80deb9f3e380a5a74f9884394c902305b70a576d53bd/posts-0.1.8-py2-none-any.whl" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "ac05863fe46291b2faebb7e7e7106eb6", "sha256": "69b031e8063006a9f43e7d712be61cd78ca027058fc92d12722487e303ba81ab" }, "downloads": -1, "filename": "posts-0.2.0-py2-none-any.whl", "has_sig": false, "md5_digest": "ac05863fe46291b2faebb7e7e7106eb6", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4556, "upload_time": "2016-01-10T18:40:09", "url": "https://files.pythonhosted.org/packages/44/48/83a2510b6cfb32aee4b24c21e584b2b0e2cda3c47dcc9cff60cb9f3bd9f3/posts-0.2.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "eb8069ff7ea7d842085f98c9584337da", "sha256": "e513104ad73c1fbb33fe6e5846078561723191f0fd8f8f5d32ca1ce5ba4683e3" }, "downloads": -1, "filename": "posts-0.2.0.tar.gz", "has_sig": false, "md5_digest": "eb8069ff7ea7d842085f98c9584337da", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2937, "upload_time": "2016-01-10T18:39:48", "url": "https://files.pythonhosted.org/packages/ad/44/bc81996a141c12dabe6df457e44df61ee221eb66683aca5ca4e8f6b3a49b/posts-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "c9d6a64280ce27669afc93c6761dce2b", "sha256": "cdbe2988e9e845befa6bdc23c4b0520bda6fa4cc48c179b82a10a5abace61d42" }, "downloads": -1, "filename": "posts-0.2.1-py2-none-any.whl", "has_sig": false, "md5_digest": "c9d6a64280ce27669afc93c6761dce2b", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4649, "upload_time": "2016-01-11T05:43:54", "url": "https://files.pythonhosted.org/packages/d8/4f/cede72d257aa5f189a51c92f5ebad0c0e0cfb8db3a435008fcfee30b2b42/posts-0.2.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cd1429974a371c642ad678e24ef1897a", "sha256": "6eda017b3da66f1819287b536cbcb627eb8caf7fa2d97cfd2899c57c3de3b251" }, "downloads": -1, "filename": "posts-0.2.1.tar.gz", "has_sig": false, "md5_digest": "cd1429974a371c642ad678e24ef1897a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2994, "upload_time": "2016-01-11T05:43:33", "url": "https://files.pythonhosted.org/packages/79/f6/8fc21d1e6eaa344c539bee0c2d5de8608209dd93028506b61e49edae6dd0/posts-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "3cffeac6077caf2cd8a6850b13ea21db", "sha256": "8c3d56a74734d5cb0d3bf1b22db8a4a4c60e26daef7f9263e84394227325183a" }, "downloads": -1, "filename": "posts-0.2.2-py2-none-any.whl", "has_sig": false, "md5_digest": "3cffeac6077caf2cd8a6850b13ea21db", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4612, "upload_time": "2016-02-06T11:28:17", "url": "https://files.pythonhosted.org/packages/69/b7/986ca3e4d2255f664f1e84ef02d88bbae30791d12810e95d515ca4b3e325/posts-0.2.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "200f6e5e2fc9904e6d4ff9885d121b1f", "sha256": "a36c26efb6d094a4dcb8161c20054ef6c8ea992281ef5e2b515ba16d8ead44d8" }, "downloads": -1, "filename": "posts-0.2.2.tar.gz", "has_sig": false, "md5_digest": "200f6e5e2fc9904e6d4ff9885d121b1f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2991, "upload_time": "2016-02-06T11:27:54", "url": "https://files.pythonhosted.org/packages/72/1d/bdb413aef1bb8a4848b5d4a14aa9ab8e48196196706782b8b3eb8bfe3d81/posts-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3cffeac6077caf2cd8a6850b13ea21db", "sha256": "8c3d56a74734d5cb0d3bf1b22db8a4a4c60e26daef7f9263e84394227325183a" }, "downloads": -1, "filename": "posts-0.2.2-py2-none-any.whl", "has_sig": false, "md5_digest": "3cffeac6077caf2cd8a6850b13ea21db", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4612, "upload_time": "2016-02-06T11:28:17", "url": "https://files.pythonhosted.org/packages/69/b7/986ca3e4d2255f664f1e84ef02d88bbae30791d12810e95d515ca4b3e325/posts-0.2.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "200f6e5e2fc9904e6d4ff9885d121b1f", "sha256": "a36c26efb6d094a4dcb8161c20054ef6c8ea992281ef5e2b515ba16d8ead44d8" }, "downloads": -1, "filename": "posts-0.2.2.tar.gz", "has_sig": false, "md5_digest": "200f6e5e2fc9904e6d4ff9885d121b1f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2991, "upload_time": "2016-02-06T11:27:54", "url": "https://files.pythonhosted.org/packages/72/1d/bdb413aef1bb8a4848b5d4a14aa9ab8e48196196706782b8b3eb8bfe3d81/posts-0.2.2.tar.gz" } ] }