{ "info": { "author": "Nathan Van Gheem", "author_email": "nathan.vangheem@wildcardcorp.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": ".. contents::\n\nPSERVER.MAILER\n==============\n\n\nConfiguration\n-------------\n\nconfig.json can include mailer section::\n\n \"applications\": [\"pserver.mailer\"],\n \"mailer\": {\n \"default_sender\": \"foo@bar.com\",\n \"endpoints\": {\n \"default\": {\n \"type\": \"smtp\",\n \"host\": \"localhost\",\n \"port\": 25\n }\n }\n }\n\n\nPrinting mailer\n---------------\n\nFor development/debugging, you can use a console print mailer::\n\n \"applications\": [\"pserver.mailer\"],\n \"mailer\": {\n \"default_sender\": \"foo@bar.com\",\n \"endpoints\": {\n \"default\": {\n \"type\": \"smtp\",\n \"host\": \"localhost\",\n \"port\": 25\n }\n },\n \"utility\": \"pserver.mailer.utility.PrintingMailerUtility\"\n }\n\n\nSending mail\n------------\n\nPOST http://localhost:8080/zodb/plone/@mailer\n\n {\n \"sender\": \"foo@bar.com\",\n \"recipient\": \"john@doe.com\",\n \"subject\": \"Some subject\",\n \"text\": \"Hello\"\n }\n\n\nPermissions\n-----------\n\n`pserver.mailer` defines a permission `mailer.SendMail` which, by default,\nonly the `plone.SiteAdmin` role is assigned.\n\n\nUsing the mailer in code\n------------------------\n\nYou can also directly use the mailer in your code::\n\n from zope.component import queryUtility\n from pserver.mailer.interfaces import IMailer\n mailer = queryUtility(IMailer)\n await mailer.send(recipient='john@doe.com', subject='This is my subject', text='Body of email')\n\n1.0.0 (2017-02-01)\n------------------\n\n- Initial release", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pyrenees/pserver.mailer", "keywords": "async mail plone", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "pserver.mailer", "package_url": "https://pypi.org/project/pserver.mailer/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pserver.mailer/", "project_urls": { "Homepage": "https://github.com/pyrenees/pserver.mailer" }, "release_url": "https://pypi.org/project/pserver.mailer/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "", "version": "1.0.0" }, "last_serial": 2612843, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "1433d6fdde9c080ff6c58852ac37c189", "sha256": "07a143d793c6b87c6fc7ee30d9908154d20f330c84bae1eb1f9e130f77d74b84" }, "downloads": -1, "filename": "pserver.mailer-1.0.0.tar.gz", "has_sig": false, "md5_digest": "1433d6fdde9c080ff6c58852ac37c189", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5240, "upload_time": "2017-02-01T21:52:47", "url": "https://files.pythonhosted.org/packages/17/b7/bbbad0f1353a7f5e9cef0b2d074c034974415cadee93fff76ca8eddf5017/pserver.mailer-1.0.0.tar.gz" } ], "1.0.1.dev0": [ { "comment_text": "", "digests": { "md5": "5380b8cde9f4e604a6cf75dc42813e55", "sha256": "33870b44bad71afd7713d29d0a04b49df0c8eee34577af4e149e944694f31639" }, "downloads": -1, "filename": "pserver.mailer-1.0.1.dev0-py3-none-any.whl", "has_sig": false, "md5_digest": "5380b8cde9f4e604a6cf75dc42813e55", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8890, "upload_time": "2017-02-01T21:52:45", "url": "https://files.pythonhosted.org/packages/ee/35/e4ebe1c01469b7daaaf52d3619145e2de1f43764ab45168d0362d0b764a5/pserver.mailer-1.0.1.dev0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c214cf85830ac35ebaf5b0d1950054cd", "sha256": "9ca99e8936a9452a135d5ff1ba8526ff11bfa6b6c0068d08c59810cde958dc50" }, "downloads": -1, "filename": "pserver.mailer-1.0.1.dev0.tar.gz", "has_sig": false, "md5_digest": "c214cf85830ac35ebaf5b0d1950054cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5286, "upload_time": "2017-02-01T21:52:48", "url": "https://files.pythonhosted.org/packages/50/d4/58545672185cf7e71b3cc1213aae610a237a74b1092192b572f841865993/pserver.mailer-1.0.1.dev0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1433d6fdde9c080ff6c58852ac37c189", "sha256": "07a143d793c6b87c6fc7ee30d9908154d20f330c84bae1eb1f9e130f77d74b84" }, "downloads": -1, "filename": "pserver.mailer-1.0.0.tar.gz", "has_sig": false, "md5_digest": "1433d6fdde9c080ff6c58852ac37c189", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5240, "upload_time": "2017-02-01T21:52:47", "url": "https://files.pythonhosted.org/packages/17/b7/bbbad0f1353a7f5e9cef0b2d074c034974415cadee93fff76ca8eddf5017/pserver.mailer-1.0.0.tar.gz" } ] }