{ "info": { "author": "zencore-cn", "author_email": "info@zencore.cn", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# python-sendmail\n\n\nPython\u7248\u90ae\u4ef6\u5ba2\u6237\u7aef\u3002\u901a\u8fc7\u4ee3\u7406\u670d\u52a1\u5668\u53d1\u9001\u90ae\u4ef6\u3002\n\n## \u5b89\u88c5\n\n```\npip install python-sendmail\n```\n \n## \u5b89\u88c5\u7684\u53ef\u6267\u884c\u7a0b\u5e8f\n\n- pysendmail\n\n## \u7a0b\u5e8f\u5e2e\u52a9\u4fe1\u606f\n\n```\nD:\\code\\python-sendmail>pysendmail --help\nUsage: pysendmail [OPTIONS] [CONTENT]\n\n \u901a\u8fc7\u4ee3\u7406\u670d\u52a1\u5668\u53d1\u9001\u90ae\u4ef6\u3002\n\n \u6ce8\u610f\uff1a\n\n \u5982\u679c\u547d\u4ee4\u884c\u4e2d\u6ca1\u6709\u63d0\u4f9b\u90ae\u4ef6\u5185\u5bb9\uff0c\u5219\u8868\u793a\u4eceSTDIN\u4e2d\u83b7\u53d6\u90ae\u4ef6\u5185\u5bb9\u3002\n\nOptions:\n -f, --from-address TEXT \u53d1\u4ef6\u4eba\uff0c\u5982\uff1a\u59d3\u540d \u3001name@example.com\u3002\n [required]\n -t, --to-address TEXT \u6536\u4ef6\u4eba\uff0c\u5982\uff1a\u59d3\u540d \u3001name@example.com\u3002\n [required]\n -s, --subject TEXT \u90ae\u7bb1\u4e3b\u9898\u3002\n -a, --attach TEXT \u90ae\u4ef6\u9644\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u6b21\u3002\n --html \u4f7f\u7528HTML\u683c\u5f0f\u3002\n -e, --encoding TEXT \u90ae\u4ef6\u5185\u5bb9\u7f16\u7801\u683c\u5f0f\uff0c\u9ed8\u8ba4\u4e3aUTF-8\u3002\n -h, --host TEXT \u90ae\u7bb1\u4ee3\u7406\u670d\u52a1\u5668\u5730\u5740\uff0c\u9ed8\u8ba4\u4e3a127.0.0.1\u3002\n -p, --port INTEGER \u90ae\u7bb1\u4ee3\u7406\u670d\u52a1\u5668\u7aef\u53e3\uff0c\u9ed8\u8ba4\u4e3a25\u3002\n --ssl \u90ae\u7bb1\u4ee3\u7406\u670d\u52a1\u5668\u8981\u6c42\u4f7f\u7528ssl\u52a0\u5bc6\u94fe\u63a5\u3002\n -u, --user TEXT \u90ae\u7bb1\u4ee3\u7406\u670d\u52a1\u5668\u5e10\u53f7\uff0c\u4e0d\u63d0\u4f9b\u5219\u8868\u793a\u65e0\u9700\u5e10\u53f7\u8ba4\u8bc1\u3002\n -P, --password TEXT \u90ae\u7bb1\u4ee3\u7406\u670d\u52a1\u5668\u5bc6\u7801\uff0c\u4e0d\u63d0\u4f9b\u5219\u8868\u793a\u65e0\u9700\u5e10\u53f7\u8ba4\u8bc1\u3002\n --help Show this message and exit.\n```\n\n## \u4f7f\u7528\u6848\u4f8b\n\n\n### \u4f7f\u7528\u8fdc\u7a0b\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u6709\u8ba4\u8bc1\uff0c\u65e0\u9644\u4ef6\n\n- \u53d1\u4ef6\u4eba\uff1aSENDER(sender@exmaple.com)\n- \u6536\u4ef6\u4eba\uff1arecipient@exmaple.com\n- \u4e3b\u9898\uff1ajust a test mail\n- \u5185\u5bb9\uff1ajust a test mail\n- \u670d\u52a1\u5668\u5730\u5740\uff1astmp.example.com\n- \u670d\u52a1\u5668\u7aef\u53e3\uff1a465\n- \u662f\u5426\u4f7f\u7528ssl\u5b89\u5168\u94fe\u63a5\uff1a\u662f\n- \u5e10\u53f7\uff1asender@example.com\n- \u5bc6\u7801\uff1asenderPassword\n- \u9644\u4ef6\uff1a\u65e0\n\n```\npysendmail -h stmp.example.com -p 465 --ssl -u sender@example.com -P senderPassword -f 'SENDER ' -t recipient@exmaple.com -s 'just a test mail' 'just a test mail'\n```\n\n\n### \u4f7f\u7528\u672c\u5730\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u65e0\u8ba4\u8bc1\uff0c\u6709\u9644\u4ef6\n\n- \u53d1\u4ef6\u4eba\uff1asender@exmaple.com\n- \u6536\u4ef6\u4eba\uff1arecipient@exmaple.com\n- \u4e3b\u9898\uff1ajust a test mail\n- \u5185\u5bb9\uff1ajust a test mail\n- \u670d\u52a1\u5668\u5730\u5740\uff1a127.0.0.1\n- \u670d\u52a1\u5668\u7aef\u53e3\uff1a25\n- \u662f\u5426\u4f7f\u7528ssl\u5b89\u5168\u94fe\u63a5\uff1a\u5426\n- \u5e10\u53f7\uff1a\u65e0\u8ba4\u8bc1\n- \u5bc6\u7801\uff1a\u65e0\u8ba4\u8bc1\n- \u9644\u4ef6\uff1a/path/to/attachment.pdf\n\n```\npysendmail -f sender@exmaple.com -t recipient@exmaple.com -s 'just a test mail' -a /path/to/attachment.pdf 'just a test mail'\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/zencore-cn/", "keywords": "python-sendmail,pysendmail,sendmail,pysendeml,sendeml,mail", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "python-sendmail", "package_url": "https://pypi.org/project/python-sendmail/", "platform": "", "project_url": "https://pypi.org/project/python-sendmail/", "project_urls": { "Homepage": "http://github.com/zencore-cn/" }, "release_url": "https://pypi.org/project/python-sendmail/0.3.0/", "requires_dist": null, "requires_python": "", "summary": "Python\u7248\u90ae\u4ef6\u5ba2\u6237\u7aef\u3002\u901a\u8fc7\u4ee3\u7406\u670d\u52a1\u5668\u53d1\u9001\u90ae\u4ef6\u3002", "version": "0.3.0" }, "last_serial": 5543863, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "cf6614039be3f9b75a0cfd47eed6cea6", "sha256": "820ae803d966a1a0a26c47bd335200a4c637c58532b4e5af656c65ee2b8898fa" }, "downloads": -1, "filename": "python-sendmail-0.1.0.tar.gz", "has_sig": false, "md5_digest": "cf6614039be3f9b75a0cfd47eed6cea6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3060, "upload_time": "2019-06-14T06:33:24", "url": "https://files.pythonhosted.org/packages/31/95/b24835d1577b28cf1d879a3b4af8d34e750101c83af638bd8df3a3ccbd75/python-sendmail-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "3cc76e66db045128f506b26083d51f93", "sha256": "1c8b251da132cfc36db503b6f409b516d994907ad38930f2c1d7015c867a7352" }, "downloads": -1, "filename": "python-sendmail-0.1.1.tar.gz", "has_sig": false, "md5_digest": "3cc76e66db045128f506b26083d51f93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3024, "upload_time": "2019-06-14T06:34:15", "url": "https://files.pythonhosted.org/packages/d7/c6/4161e40f05a2f049273df9baaf019b73079b6c2e2718d4cdcef39869a508/python-sendmail-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "44537edb5b2906b491c5515047480637", "sha256": "e9a379c259f8488af82b2c66fef88f6f3b78540feb7bb5a78ed8366b87e777e8" }, "downloads": -1, "filename": "python_sendmail-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "44537edb5b2906b491c5515047480637", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4891, "upload_time": "2019-07-01T13:17:47", "url": "https://files.pythonhosted.org/packages/d4/19/e4201ad19a966b4ba3d63af51afd9a7cbcf80cd46ad4c550608f768b320c/python_sendmail-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "db55433fa76e9cf0fdd611f815de7062", "sha256": "16dd4cddb7598ccf38d986d596e0e4a9e91c706a713367d08cd03d22fa70aa72" }, "downloads": -1, "filename": "python-sendmail-0.2.0.tar.gz", "has_sig": false, "md5_digest": "db55433fa76e9cf0fdd611f815de7062", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3614, "upload_time": "2019-07-01T13:17:48", "url": "https://files.pythonhosted.org/packages/8f/18/3b715b75c91f148ea0d36646548a1f653bb1b91213125cf919c8022cbb3c/python-sendmail-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "7ec6bdfc7946f08dc7749d0dec889a20", "sha256": "7029323b1a9538d31f5deecf2830f1372fec715955fbcd5d706e7d3f41d50f65" }, "downloads": -1, "filename": "python_sendmail-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "7ec6bdfc7946f08dc7749d0dec889a20", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4869, "upload_time": "2019-07-02T04:32:00", "url": "https://files.pythonhosted.org/packages/70/5d/3734646660a2a45b66789dd606d19394cd39d6cc9e3b87744e96ba80617c/python_sendmail-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "845df4e530ba576896f168f25058c6d2", "sha256": "7f0f25454a2d61f987929eca4468ab8b8339e751178e075930262695d9ff61e5" }, "downloads": -1, "filename": "python-sendmail-0.2.1.tar.gz", "has_sig": false, "md5_digest": "845df4e530ba576896f168f25058c6d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3604, "upload_time": "2019-07-02T04:32:01", "url": "https://files.pythonhosted.org/packages/0a/ce/24e734182cac0a8314488ae59057b634876fc0e11c6d7a0a43ab5d6113ff/python-sendmail-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "6d878c7ce5665f0673f872e46283aa90", "sha256": "f765640ab297bdda8b53fcc02073b57b1d062823d402dae83718573621289bda" }, "downloads": -1, "filename": "python_sendmail-0.2.2-py3-none-any.whl", "has_sig": false, "md5_digest": "6d878c7ce5665f0673f872e46283aa90", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4935, "upload_time": "2019-07-02T06:47:41", "url": "https://files.pythonhosted.org/packages/79/a0/c0c6a00f497c84149c9966b990025424e8b7d77781a51d95d4b2b1305abc/python_sendmail-0.2.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "56df741def6f29a31012fb1886adf08a", "sha256": "2b7911bdc3ca3ae200832da6b8a74516f3e509fdafb964ab456f0dbf21f5266d" }, "downloads": -1, "filename": "python-sendmail-0.2.2.tar.gz", "has_sig": false, "md5_digest": "56df741def6f29a31012fb1886adf08a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3663, "upload_time": "2019-07-02T06:47:42", "url": "https://files.pythonhosted.org/packages/b5/ff/ff39d436f93bcf8451f7f2c769fed4261b225c00343fd18954eb27282e8c/python-sendmail-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "42daa1fc8b0a20b0fd9578a7a78a15d1", "sha256": "60703919dde75ee6d0e7b734cdf13266f6026ba3e94103ba53c06809b158a4d6" }, "downloads": -1, "filename": "python_sendmail-0.2.3-py3-none-any.whl", "has_sig": false, "md5_digest": "42daa1fc8b0a20b0fd9578a7a78a15d1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5000, "upload_time": "2019-07-04T08:09:13", "url": "https://files.pythonhosted.org/packages/86/8c/ee8c5c5e41f18d84c87769fd27e2eb42367337a19c8960dea316d247515d/python_sendmail-0.2.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2969ece60402e8e114507ac367a70ec8", "sha256": "3476e3987d94e38955841311ea850b3533bf5c89e709b706612da5df8fc79082" }, "downloads": -1, "filename": "python-sendmail-0.2.3.tar.gz", "has_sig": false, "md5_digest": "2969ece60402e8e114507ac367a70ec8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3738, "upload_time": "2019-07-04T08:09:14", "url": "https://files.pythonhosted.org/packages/d5/60/dd8987291f14969e25af3b274028acd78ab8bae83098c142fcb81242a24d/python-sendmail-0.2.3.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "d43a514ee0083a4e9a956d8ea4c64345", "sha256": "7800918e01ab51de11cca5ca186d239c4c7910569cc818d1f3c90e41e2c03258" }, "downloads": -1, "filename": "python-sendmail-0.3.0.tar.gz", "has_sig": false, "md5_digest": "d43a514ee0083a4e9a956d8ea4c64345", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4423, "upload_time": "2019-07-17T03:41:50", "url": "https://files.pythonhosted.org/packages/90/8b/1558e6a721369554bc1dcae4e993ec3a7458dd09ddb0e187c1b142291b95/python-sendmail-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d43a514ee0083a4e9a956d8ea4c64345", "sha256": "7800918e01ab51de11cca5ca186d239c4c7910569cc818d1f3c90e41e2c03258" }, "downloads": -1, "filename": "python-sendmail-0.3.0.tar.gz", "has_sig": false, "md5_digest": "d43a514ee0083a4e9a956d8ea4c64345", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4423, "upload_time": "2019-07-17T03:41:50", "url": "https://files.pythonhosted.org/packages/90/8b/1558e6a721369554bc1dcae4e993ec3a7458dd09ddb0e187c1b142291b95/python-sendmail-0.3.0.tar.gz" } ] }