{ "info": { "author": "kongkongyzt", "author_email": "kongkongyzt@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "PyMailMan\n=========\n\nA simple tool for sending mail by Python\n\nHomepage\n~~~~~~~~\n\nhttps://github.com/kongkongyzt/PyMailMan\n\nInstall\n~~~~~~~\n\n.. code:: sh\n\n sudo pip install PyMailMan\n\nUsage\n~~~~~\n\n- To send the text\n\n.. code:: python\n\n from PyMailMan import PyMailMan\n\n mail = PyMailMan(host='smtp.qq.com', user='12345678', password='12345678')\n mail.send(\n ['3456767@qq.com','testman@gmail.com'], \n 'This is title', \n 'This is the content'\n )\n print 'OK' if mail.status else mail.errMsg\n\n- To send the HTML\n\n.. code:: python\n\n from PyMailMan import PyMailMan\n\n mail = PyMailMan(host='smtp.qq.com', user='12345678', password='12345678')\n mail.send(\n ['3456767@qq.com','testman@gmail.com'],\n 'This is title', \n \"

This is the content

\"\n )\n print 'OK' if mail.status else mail.errMsg\n\n- To send the email with file\n\n.. code:: python\n\n from PyMailMan import PyMailMan\n\n mail = PyMailMan(host='smtp.qq.com', user='12345678', password='12345678')\n #Recommand to write the absolute path of the file\n mail.send(\n ['3456767@qq.com','testman@gmail.com'], \n 'This is title', \n 'This is the content',\n '/home/kongkongyzt/a.txt',\n '/home/kongkongyzt/b.txt'\n )\n print 'OK' if mail.status else mail.errMsg\n\n- To show the image in the mail content\n\n.. code:: python\n\n mail = PyMailMan(host='smtp-mail.outlook.com', user='xxxxx@outlook.com', password='xxxx')\n mail.send(\n ['783087000@qq.com'],\n 'This is title',\n \"Hello,The following image is the photo of last vacation in China, do you like it ? \",\n \"/home/kongkongyzt/a.jpg\",\n \"/home/kongkongyzt/b.docx\",\n \"/home/kongkongyzt/c.jpg\"\n )\n print 'OK' if mail.status else mail.errMsg\n\nYou need to attention that the 1 in cid:1 means the second pictrue in\nyour attachment,in this example is /home/kongkongyzt/c.jpg You should\nalso know that once you choose one of the image in the attachment to\nshow in the mail content by using ````, the image file\nwill not present in the attachList of the mail\n\nCommon mail smtp configure sample\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nassume the email address is 1234567@xx.com and password is 12345678 Here\nare some of the smtp configure example:\n\n- QQ Mail\n\n.. code:: python\n\n PyMailMan(host='smtp.qq.com', user='1234567', password='12345678')\n\n- Gmail\n\n.. code:: python\n\n PyMailMan(host='smtp.gmail.com', user='1234567@gmail.com', password='12345678')\n\n- Outlook\n\n.. code:: python\n\n PyMailMan(host='smtp-mail.outlook.com', user='1234567@outlook.com', password='12345678')\n\nTips\n~~~~\n\n- You can manual defined the ports and the prefix\n\n.. code:: python\n\n PyMailMan(host='smtp.gmail.com', user='1234567@gmail.com', password='12345678', ports=25, prefix='gmail.com')\n\nFeedback\n~~~~~~~~\n\nIf you have any problem or issue, please contact me by opening an issue\non the github homepage Homepage:\nhttps://github.com/kongkongyzt/PyMailMan\n\nchangelog\n~~~~~~~~~\n\n- 0.1\n\ninit commit\n\n- 0.2\n\nadd send by HTML and send with file bug fix\n\n- 0.9\n\nbug fix\n\n- 1.0\n\nadd support for sending file with relative path set the attaching file\nname as its' real file name", "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/kongkongyzt/PyMailMan", "keywords": "mail,smtp", "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "PyMailMan", "package_url": "https://pypi.org/project/PyMailMan/", "platform": "any", "project_url": "https://pypi.org/project/PyMailMan/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/kongkongyzt/PyMailMan" }, "release_url": "https://pypi.org/project/PyMailMan/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "A simple tool for sending mail by Python", "version": "1.0.0" }, "last_serial": 1601657, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "a573fef7f8312bddf3a2f151bb495307", "sha256": "74a80f19d9c9df4e6ce6fb154d0b07660d85ee554795c27b87752edc508c2c87" }, "downloads": -1, "filename": "PyMailMan-0.1.tar.gz", "has_sig": false, "md5_digest": "a573fef7f8312bddf3a2f151bb495307", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1661, "upload_time": "2015-06-21T16:59:28", "url": "https://files.pythonhosted.org/packages/03/e0/7df0d7a597f93ad8174579b380bf708e75c5571ebd0d9bfb5088e091cdc0/PyMailMan-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "3f71de45b59fccfb3e303da50f1428ea", "sha256": "79c9adf9f931e92ef2c425e7f7073066713a466d6c021588762ce7f84cc20dda" }, "downloads": -1, "filename": "PyMailMan-0.2.tar.gz", "has_sig": false, "md5_digest": "3f71de45b59fccfb3e303da50f1428ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2091, "upload_time": "2015-06-22T02:09:24", "url": "https://files.pythonhosted.org/packages/a4/2a/c0dda46098daabf28b988a0bd733e6eef56d2b2b2dadef9f50036673854f/PyMailMan-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "57661b667aba7d736ce470885ac0e9b8", "sha256": "64e17865489c2189eafa33e7e966f646d5e265d0894a8d3a2619ee9b34f96d69" }, "downloads": -1, "filename": "PyMailMan-0.3.tar.gz", "has_sig": false, "md5_digest": "57661b667aba7d736ce470885ac0e9b8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2117, "upload_time": "2015-06-22T02:14:47", "url": "https://files.pythonhosted.org/packages/e0/40/dbd3326f6a92d51155f4ad4eac8cf02a923c5d4b640f11f95f0bcb98bc88/PyMailMan-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "782d057ec5d0961632edc36bd264b6b2", "sha256": "09fda2c2463d40e96cefb516e9be62efa74f1750258d66a5b693fd734ea71eb0" }, "downloads": -1, "filename": "PyMailMan-0.4.tar.gz", "has_sig": false, "md5_digest": "782d057ec5d0961632edc36bd264b6b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2114, "upload_time": "2015-06-22T02:42:49", "url": "https://files.pythonhosted.org/packages/d8/0f/d24b9fcfc4f42e27da828c88f14304180be78ad1bb68afdd5fe1efc02320/PyMailMan-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "cbb71c40d0a5d62bfa287c3ed4ab384c", "sha256": "a6ff34af7b9bf7afdcfc829f2ba6b79a40c81299dbfe7123b76713a0c82348ec" }, "downloads": -1, "filename": "PyMailMan-0.5.tar.gz", "has_sig": false, "md5_digest": "cbb71c40d0a5d62bfa287c3ed4ab384c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2207, "upload_time": "2015-06-22T03:15:59", "url": "https://files.pythonhosted.org/packages/18/3d/6fa6245a0cd3896bfc86ad5401aaf074d56c8bcdd55b69b6cc4383043b3e/PyMailMan-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "06c01b9aa5af97e50bbe4dfa61e7e2bc", "sha256": "c758fb2641c25539cfb4fff594e8f4ecbb4bec94938deb9dfb2ba9e43a5841fc" }, "downloads": -1, "filename": "PyMailMan-0.6.tar.gz", "has_sig": false, "md5_digest": "06c01b9aa5af97e50bbe4dfa61e7e2bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2035, "upload_time": "2015-06-22T03:26:41", "url": "https://files.pythonhosted.org/packages/6d/7b/fcee2bf6199f4a1c1cc13e4a4139d69adc2d990e01a3a686b3dd4f70223b/PyMailMan-0.6.tar.gz" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "8e2547e2e612b7a7c66c0c76069b9603", "sha256": "7ae3960ea225847fdfd134d98a7c8d978e3f4bebbeef7a109c8e519922169ef1" }, "downloads": -1, "filename": "PyMailMan-0.7.tar.gz", "has_sig": false, "md5_digest": "8e2547e2e612b7a7c66c0c76069b9603", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2143, "upload_time": "2015-06-22T04:34:29", "url": "https://files.pythonhosted.org/packages/a9/90/13cc49c62b4294a66f0259f82495588415c9335c18cc547f3643ce2b9a19/PyMailMan-0.7.tar.gz" } ], "0.8.1": [ { "comment_text": "", "digests": { "md5": "61b344cbc3a3e5f2a6bbd5c420ef91ac", "sha256": "a5e908ca695e1dfe442e016efc8f975e1b8cf5f26548dac51007aaa8cc5162fb" }, "downloads": -1, "filename": "PyMailMan-0.8.1.tar.gz", "has_sig": false, "md5_digest": "61b344cbc3a3e5f2a6bbd5c420ef91ac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2416, "upload_time": "2015-06-22T06:50:41", "url": "https://files.pythonhosted.org/packages/27/f9/bf0273b9b8f590cee7aae095dce964744c76288cb936035c33d0adb69a29/PyMailMan-0.8.1.tar.gz" } ], "0.9.0": [ { "comment_text": "", "digests": { "md5": "9b5e589759e46f4b42133b52838bf7e1", "sha256": "923de387f85be9f756a865af68fcb5be06eb1481193d358110cee857cf484432" }, "downloads": -1, "filename": "PyMailMan-0.9.0.tar.gz", "has_sig": false, "md5_digest": "9b5e589759e46f4b42133b52838bf7e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2959, "upload_time": "2015-06-22T07:35:50", "url": "https://files.pythonhosted.org/packages/2f/57/555d2070e8d5745f3b0f63cc21b5c535626276d7b6aab2eb2424d19858af/PyMailMan-0.9.0.tar.gz" } ], "0.9.1": [ { "comment_text": "", "digests": { "md5": "24e5eaffeb6fffd2c40d808df287f6cb", "sha256": "173897fac637e9304d0adce3a38f54add7b8552f899bc63c7ffe1f4216c5460f" }, "downloads": -1, "filename": "PyMailMan-0.9.1.tar.gz", "has_sig": false, "md5_digest": "24e5eaffeb6fffd2c40d808df287f6cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2960, "upload_time": "2015-06-22T08:08:24", "url": "https://files.pythonhosted.org/packages/6d/7a/a3d242f56f8dbb1dec37e1e9e6b23ebac6f8c19f62e32285cba5cad3e97d/PyMailMan-0.9.1.tar.gz" } ], "0.9.2": [ { "comment_text": "", "digests": { "md5": "8d48c027eb27b98c17d7c8a23ca000c2", "sha256": "e10039fbbeba83c711e8253ae06354c0131312905e168e65a4e80e4198323490" }, "downloads": -1, "filename": "PyMailMan-0.9.2.tar.gz", "has_sig": false, "md5_digest": "8d48c027eb27b98c17d7c8a23ca000c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2954, "upload_time": "2015-06-22T08:09:48", "url": "https://files.pythonhosted.org/packages/95/6f/48716f9b5e7b382ca7b3e746e324e8300b9b9ad0196d3d1536bc4a025017/PyMailMan-0.9.2.tar.gz" } ], "0.9.3": [ { "comment_text": "", "digests": { "md5": "b1623a1c1f967f32a0529f663c1f9e1d", "sha256": "14a1bfd5d9efd2909934d22b36805816ed55bb6c5656ecb0d72948cc6f6f975c" }, "downloads": -1, "filename": "PyMailMan-0.9.3.tar.gz", "has_sig": false, "md5_digest": "b1623a1c1f967f32a0529f663c1f9e1d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3023, "upload_time": "2015-06-22T09:34:46", "url": "https://files.pythonhosted.org/packages/ca/77/b7e9ae38e2e3af68e7ce22432b162e6208a90bf9afde3213b15beb8e8ccc/PyMailMan-0.9.3.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "4cdb59d24b9a01d8f10ced43b7331a3e", "sha256": "f44468e8c44b2de0280731c9c166124e3840adffe26fad69c3613e01bd016245" }, "downloads": -1, "filename": "PyMailMan-1.0.0.tar.gz", "has_sig": false, "md5_digest": "4cdb59d24b9a01d8f10ced43b7331a3e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3152, "upload_time": "2015-06-22T10:01:41", "url": "https://files.pythonhosted.org/packages/ab/e5/454047e28756baa084f4ddcc674fb0f428287ffd12a9dccb1700a60214e1/PyMailMan-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4cdb59d24b9a01d8f10ced43b7331a3e", "sha256": "f44468e8c44b2de0280731c9c166124e3840adffe26fad69c3613e01bd016245" }, "downloads": -1, "filename": "PyMailMan-1.0.0.tar.gz", "has_sig": false, "md5_digest": "4cdb59d24b9a01d8f10ced43b7331a3e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3152, "upload_time": "2015-06-22T10:01:41", "url": "https://files.pythonhosted.org/packages/ab/e5/454047e28756baa084f4ddcc674fb0f428287ffd12a9dccb1700a60214e1/PyMailMan-1.0.0.tar.gz" } ] }