{ "info": { "author": "Michel Casabianca", "author_email": "casa@sweetohm.net", "bugtrack_url": null, "classifiers": [], "description": "MAIL 1\n======\n\nMail1 is an API to send email with a single function call. For instance,\nwe could send an email running:\n\n::\n\n import mail1\n\n mail1.send(subject='Test',\n text='This is a test!', \n recipients='casa@sweetohm.net',\n sender='casa@sweetohm.net',\n smtp_host='smtp.orange.fr')\n\nThat's it!\n\nsend() method\n-------------\n\nThe signature of the method to send an email is the following:\n\n::\n\n send(subject, text, text_html=None, sender=None,\n recipients=[None], cc=[], bcc=[], attachments={},\n encoding=ENCODING, smtp_host=SMTP_HOST, smtp_port=SMTP_PORT,\n username=None, password=None)\n\nThe parameters are the following:\n\n- **subject**: this is the subject of the email, as a string.\n- **text**: this is the text of the email as a string.\n- **text\\_html**: text as HTML.\n- **sender**: email address of the sender of the email.\n- **recipients**: the list of recipients, or the recipient as a string\n if there is a single one (this is NOT a coma separated list).\n- **cc**: the list of carbon copies.\n- **bcc**: the list of blind carbon copies.\n- **attachments**: a dictionnary that gives the file name for a given\n attachment name.\n- **encoding**: the encoding of the message.\n- **smtp\\_host**: the hostname of the email server.\n- **smtp\\_port**: the port of the email server (defaults to 25).\n- **username**: the username for SMTP basic authentication\n- **password**: the password for SMTP basic authentication\n\nCommand line\n------------\n\nYou can also invoke this script on command line to send emails. To get\nhelp about command line parameters, type *mail1 -h*, which will display\nfollowing help page:\n\n::\n\n mail1 [-h] -f from -r recipient -s subject -a file \n -m smtphost -e encoding message\n Send an email with following:\n -h Print this help page\n -f from The mail sender\n -r recipient The mail recipient (repeat for more than one recipient)\n -s subject The mail subject\n -a file A file to attach\n -e encoding The encoding to use\n -m smtphost The SMTP server host\n -u username The SMTP username\n -p password The SMTP password\n message The message\n\nEnjoy!\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/mail1/", "keywords": "", "license": "Apache Software License", "maintainer": "", "maintainer_email": "", "name": "mail1", "package_url": "https://pypi.org/project/mail1/", "platform": "", "project_url": "https://pypi.org/project/mail1/", "project_urls": { "Homepage": "http://pypi.python.org/pypi/mail1/" }, "release_url": "https://pypi.org/project/mail1/3.1.1/", "requires_dist": null, "requires_python": "", "summary": "mail1 is an API to send emails in a single call", "version": "3.1.1" }, "last_serial": 4328587, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "fd52b04c2574720fbf93a8919178d831", "sha256": "d6841bbd97949b6c7ae99629e86c6c151ecb712fe427ee2478d6e07acdedd67b" }, "downloads": -1, "filename": "mail1-0.1.0.tar.gz", "has_sig": false, "md5_digest": "fd52b04c2574720fbf93a8919178d831", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6781, "upload_time": "2014-04-09T22:53:51", "url": "https://files.pythonhosted.org/packages/48/5c/6beae8a1cb17c3488eb38bbf4fc6f27ea7ec6d2649585035c581ac6d7f3f/mail1-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "ad3f989a889ca65b0d2a535b40141568", "sha256": "675be392dd6f8679de64f6179269947248f2ba3883249558de70cf8a69bc0b2b" }, "downloads": -1, "filename": "mail1-0.1.1.tar.gz", "has_sig": false, "md5_digest": "ad3f989a889ca65b0d2a535b40141568", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6866, "upload_time": "2014-04-15T00:57:01", "url": "https://files.pythonhosted.org/packages/a0/c3/9bc269c7e8f8cff3ca2d66b8dccbe69b9fb4c0bbf50f3b23fa2be4f7d8a1/mail1-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "705705c819ba3855dd306a85e7fc939f", "sha256": "ca4ccebbf539452bd84d3baacfd0b51e62c562da2dd6d740e49d1cc5cf434848" }, "downloads": -1, "filename": "mail1-0.2.0.tar.gz", "has_sig": false, "md5_digest": "705705c819ba3855dd306a85e7fc939f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6843, "upload_time": "2015-04-26T21:50:58", "url": "https://files.pythonhosted.org/packages/d3/80/c31bbaef139c87d91a6aa8f241c7279a757e1946e9d67ec6e6ad0e34af98/mail1-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "afe834e0c23061cdaa4dd8e4bde5c872", "sha256": "ec682874d92a621c6a0947fbd36c89b0b4b39ff5b33a54da3aec58fb1b93108d" }, "downloads": -1, "filename": "mail1-0.2.1.tar.gz", "has_sig": false, "md5_digest": "afe834e0c23061cdaa4dd8e4bde5c872", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7253, "upload_time": "2015-07-27T22:09:24", "url": "https://files.pythonhosted.org/packages/e1/cc/9a239d926498a4b402870d718efaa315b96efff6921b88b14e4a6e5c587c/mail1-0.2.1.tar.gz" } ], "3.0.0": [ { "comment_text": "", "digests": { "md5": "2f72ff9e6cbd6fd307c5103710c9d0b2", "sha256": "ee4bb4ce4fed5b828f1f88a7b4a78089f9438488019c5ebdf7abb5dd89c60f8d" }, "downloads": -1, "filename": "mail1-3.0.0.tar.gz", "has_sig": false, "md5_digest": "2f72ff9e6cbd6fd307c5103710c9d0b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7459, "upload_time": "2015-10-13T15:20:46", "url": "https://files.pythonhosted.org/packages/63/47/8076cad6eb6070c1ea06801630dd1afe78aeacf8c612e7990a4d96ca261a/mail1-3.0.0.tar.gz" } ], "3.0.1": [ { "comment_text": "", "digests": { "md5": "df7dd5a63a3b753bd8724fdadafc6cc8", "sha256": "77de6f71f947eeeb3f3419617546886206958ea64e8824ee63523b7b21b4bb57" }, "downloads": -1, "filename": "mail1-3.0.1.tar.gz", "has_sig": false, "md5_digest": "df7dd5a63a3b753bd8724fdadafc6cc8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7519, "upload_time": "2016-09-01T16:00:08", "url": "https://files.pythonhosted.org/packages/54/42/88d3d616f66f22d51904d7956fe83c1c18a04f15b6c82272eeec3d71cd9f/mail1-3.0.1.tar.gz" } ], "3.1.0": [ { "comment_text": "", "digests": { "md5": "c4072fe971c54963703ddd76125a0f85", "sha256": "f8bd9e8c4129418edbb58160d58c58a609aa56fee7e5c22b8542f46a5dab4556" }, "downloads": -1, "filename": "mail1-3.1.0.tar.gz", "has_sig": false, "md5_digest": "c4072fe971c54963703ddd76125a0f85", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7614, "upload_time": "2018-10-01T13:44:41", "url": "https://files.pythonhosted.org/packages/24/40/f6501b5cbfcabee52028f4a5fe6f2aaad16efc7681f7bd41cdd7e4850544/mail1-3.1.0.tar.gz" } ], "3.1.1": [ { "comment_text": "", "digests": { "md5": "db3ca1cbcce7ff98558b7bf1676c841c", "sha256": "feeecf1b11048c3ee50f0f64a4a1a66a2b21d85608b327594680cf8d6a863eb7" }, "downloads": -1, "filename": "mail1-3.1.1.tar.gz", "has_sig": false, "md5_digest": "db3ca1cbcce7ff98558b7bf1676c841c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7733, "upload_time": "2018-10-01T13:56:50", "url": "https://files.pythonhosted.org/packages/32/60/153323ca14ef3525329a507bfe4f454f93f258533e74e7794638eaf00301/mail1-3.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "db3ca1cbcce7ff98558b7bf1676c841c", "sha256": "feeecf1b11048c3ee50f0f64a4a1a66a2b21d85608b327594680cf8d6a863eb7" }, "downloads": -1, "filename": "mail1-3.1.1.tar.gz", "has_sig": false, "md5_digest": "db3ca1cbcce7ff98558b7bf1676c841c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7733, "upload_time": "2018-10-01T13:56:50", "url": "https://files.pythonhosted.org/packages/32/60/153323ca14ef3525329a507bfe4f454f93f258533e74e7794638eaf00301/mail1-3.1.1.tar.gz" } ] }