{ "info": { "author": "Danielle Madeley", "author_email": "danielle.madeley@squareweave.com.au", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3" ], "description": "MailMQ\n======\n\n`sendmail` like mail-relaying via MQ.\n\nWhen working with PHP and transaction email services, there's the super useful\n`ssmtp`, which works great, except that `ssmtp` is synchronous and if your\nmail relay is slow, it will slow your entire web request down.\n\nEnter `mailmq`, which does the same thing, but via a producer-consumer model.\nYou run an AMQP service, e.g. RabbitMQ, and a Celery worker that runs\n`mailmq.server` and then you can use `mailmq.client` to send email\nasynchronously.\n\nThe server is designed for Docker, so all configuration happens via the\nenvironment.\n\nServer\n------\n\nVia Docker:\n\n```\ndocker-compose up\n```\n\nOr directly:\n\n```\nCELERY_BROKER=localhost SMTP_HOST=mail celery -A mailmq.server worker\n```\n\nThe following environment variables are supported:\n\n* `CELERY_BROKER` - AMQP broker (required)\n* `SMTP_HOST` - destination SMTP server host (required)\n* `SMTP_PORT` - destination SMTP server port\n* `SMTP_USER` - user for SMTP auth\n* `SMTP_PASS` - password for SMTP auth\n* `MAIL_FROM` - default sender (strongly recommended)\n\nClient\n------\n\nDesigned to have the same command line arguments as `sendmail`.\n\nFrom pip:\n\n```\npip install mailmq\n```\n\nWith source:\n\n```\npython setup.py install\n```\n\n```\nCELERY_BROKER=amqp mailmq -t << EOF\nFrom: badger@badger.com\nTo: badger@badger.com\nSubject: badger\n\nBadger!\nEOF\n```\n\nOr without installing:\n\n```\nCELERY_BROKER=localhost python -m mailmq.client badger@example.com\n```\n\nThe following environment variables are supported:\n\n* `CELERY_BROKER` - AMQP broker (required)\n\nAdd the following to your `php.ini` to use with PHP:\n\n```\nsendmail_path = \"mailmq -t\"\n```\n\nRunning Tests Locally\n---------------------\n\n# Install PHPUnit, with an appropriate version of PHP also installed \n and available locally.\n# Make python3 available. you might have to use virtualenv to do this. \n e.g. `mkvirtualenv --python=python3 .`\n# Install celery locally with `pip install -r requirements.txt`\n# `./tests/run.sh` - this starts up the required docker containers,\n configures PHP to use mailmq for sending email, then runs the phpunit\n tests defined in /tests\n\n\nLicense\n-------\n\nMIT license.\n\nCopyright (c) 2016, Squareweave \n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.", "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/squareweave/mailmq", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "mailmq", "package_url": "https://pypi.org/project/mailmq/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/mailmq/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/squareweave/mailmq" }, "release_url": "https://pypi.org/project/mailmq/0.0.4/", "requires_dist": null, "requires_python": null, "summary": "Sendmail compatible SMTP relay over MQ", "version": "0.0.4" }, "last_serial": 2491026, "releases": { "0.0.1": [], "0.0.2": [ { "comment_text": "", "digests": { "md5": "679b2f56794d1e7dfe391036d1384583", "sha256": "4b243babee928384ab8e5dee81cc76d50ff809d2f9f28a65f424e825e5273da9" }, "downloads": -1, "filename": "mailmq-0.0.2.tar.gz", "has_sig": false, "md5_digest": "679b2f56794d1e7dfe391036d1384583", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4824, "upload_time": "2016-11-17T04:45:08", "url": "https://files.pythonhosted.org/packages/cb/a1/e49c1719822ccd5b4f55b10e635d4dc4357d6b2add833f0b27152d4efce7/mailmq-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "e9fe00226c0144ed44fa4af2c0fcd004", "sha256": "495e9661a57eb0f9b0e757c35ffcd6d00d1c677eea2d631a22defe9261720518" }, "downloads": -1, "filename": "mailmq-0.0.3.tar.gz", "has_sig": false, "md5_digest": "e9fe00226c0144ed44fa4af2c0fcd004", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5629, "upload_time": "2016-11-18T02:56:08", "url": "https://files.pythonhosted.org/packages/7f/d3/c581a8dc6e8ba7a62e18d84f0ee769cb5a565306045302d55f95f48c10b0/mailmq-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "c998bf79a6e271b08300db57501d09cd", "sha256": "9ddf94875dd0190c427bf9a74092fc24a7b85b0a39d3b55bbb04cff598d78b6c" }, "downloads": -1, "filename": "mailmq-0.0.4.tar.gz", "has_sig": false, "md5_digest": "c998bf79a6e271b08300db57501d09cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5911, "upload_time": "2016-11-30T03:59:07", "url": "https://files.pythonhosted.org/packages/5c/c4/1c17596017cfaaf50dbf7830522b57549548ccfef9be25d0f123645f0f38/mailmq-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c998bf79a6e271b08300db57501d09cd", "sha256": "9ddf94875dd0190c427bf9a74092fc24a7b85b0a39d3b55bbb04cff598d78b6c" }, "downloads": -1, "filename": "mailmq-0.0.4.tar.gz", "has_sig": false, "md5_digest": "c998bf79a6e271b08300db57501d09cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5911, "upload_time": "2016-11-30T03:59:07", "url": "https://files.pythonhosted.org/packages/5c/c4/1c17596017cfaaf50dbf7830522b57549548ccfef9be25d0f123645f0f38/mailmq-0.0.4.tar.gz" } ] }