{ "info": { "author": "Marcin Sztolcman", "author_email": "marcin@urzenia.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: No Input/Output (Daemon)", "Environment :: Web Environment", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Communications :: Email", "Topic :: Software Development", "Topic :: System :: Networking", "Topic :: Utilities" ], "description": "MailTrap\n==========\n\n[![mailtrap version](https://img.shields.io/pypi/v/mailtrap.svg)](https://pypi.python.org/pypi/mailtrap)\n[![mailtrap license](https://img.shields.io/pypi/l/mailtrap.svg)](https://pypi.python.org/pypi/mailtrap)\n[![mailtrap python compatibility](https://img.shields.io/pypi/pyversions/mailtrap.svg)](https://pypi.python.org/pypi/mailtrap)\n[![say thanks!](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://saythanks.io/to/msztolcman)\n\nMailTrap is a SMTP server designed to run in your dev/test environment, that is designed to catch any email you or your application is sending, and display it in a web interface instead if sending to real world. It help you prevents sending any dev/test emails to real people, no matter what address you provide.\nJust point your app/email client to smtp://127.0.0.1:1025 and look at your emails on http://127.0.0.1/1080.\n\nMailTrap is built on shoulders of:\n* [MailCatcher](https://mailcatcher.me/) - original idea comes of this tool by Samuel Cochran.\n* [MailDump](https://github.com/ThiefMaster/maildump) - base source code of `MailTrap`, by Adrian M\u00f6nnich.\n\nIf you like this tool, just [say thanks](https://saythanks.io/to/msztolcman).\n\nCurrent stable version\n----------------------\n\n0.1.2\n\nFeatures\n--------\n\n* Catches all mail and stores it for display.\n* Shows HTML, Plain Text and Source version of messages, as applicable.\n* Rewrites HTML enabling display of embedded, inline images/etc and opens links in a new window.\n* Lists attachments and allows separate downloading of parts.\n* Download original email to view in your native mail client(s).\n* Command line options to override the default SMTP/HTTP IP and port settings.\n* Mail appears instantly if your browser supports [WebSockets][websockets], otherwise updates every thirty seconds.\n* Runs as a daemon in the background, optionally in foreground.\n* Keyboard navigation between messages\n* Optionally password protected access to webinterface\n* Optionally password protected access to SMTP (SMTP AUTH)\n\nHow to use\n----------\n\n\n[After installing](#installation) `MailTrap`, just run command:\n\n mailtrap\n\nNow send emails through `smtp://127.0.0.1:1025` and look at them on `http://127.0.0.1:1080`.\n\nIf you want more details, run:\n\n mailtrap --help\n\nfor more info, ie. how to protect access to gui.\n\nRails\n-----\n\nFor your rails application just set in your `environments/development.rb`:\n\n config.action_mailer.delivery_method = :smtp\n config.action_mailer.smtp_settings = { :address => '127.0.0.1', :port => 1025 }\n config.action_mailer.raise_delivery_errors = false\n\nDjango\n------\n\nTo configure Django to work with `MailTrap`, add the following to your projects' settings.py:\n\n if DEBUG:\n EMAIL_HOST = '127.0.0.1'\n EMAIL_HOST_USER = ''\n EMAIL_HOST_PASSWORD = ''\n EMAIL_PORT = 1025\n EMAIL_USE_TLS = False\n\nAPI\n---\n\n`MailTrap` offers RESTful API you can use to fetch list of messages or particular message, ie. for testing purposes. You can use endpoints like:\n\n* `GET /messages/` - fetch list of emails\n* `DELETE /messages/` - delete all emails\n* `GET /messages/.json` - fetch email metadata\n* `GET /messages/.plain` - fetch plain part of email\n* `GET /messages/.html` - fetch HTML part of email\n* `GET /messages/.source` - fetch source of email\n* `GET /messages/.eml` - download whole email as an EML file\n* `GET /messages//parts/` - download particular attachment\n* `DELETE /messages/` - delete single email\n\n\nPython version\n--------------\n\n`MailTrap` is tested against Python 3.6+. Older Python versions may work, or may not.\n\nIf you want to run this software on Python 2.6+, just use [MailDump](https://github.com/ThiefMaster/maildump)\n\nInstallation\n------------\n\n`MailTrap` should work on any POSIX platform where [Python](http://python.org)\nis available, it means Linux, MacOS/OSX etc.\n\nSimplest way is to use Python's built-in package system:\n\n pip3 install mailtrap\n\nVoila!\n\nAuthors\n-------\n\n* Marcin Sztolcman ([marcin@urzenia.net](mailto:marcin@urzenia.net))\n* Adrian M\u00f6nnich (author of [MailDump](https://github.com/ThiefMaster/maildump), base of `MailTrap`)\n\nContact\n-------\n\nIf you like or dislike this software, please do not hesitate to tell me about\nthis me via email ([marcin@urzenia.net](mailto:marcin@urzenia.net)).\n\nIf you find bug or have an idea to enhance this tool, please use GitHub's\n[issues](https://github.com/msztolcman/mailtrap/issues).\n\nLicense\n-------\n\nThe MIT License (MIT)\n\n* Copyright (c) 2018 Marcin Sztolcman\n* Copyright (c) 2013 Adrian M\u00f6nnich ([MailDump](https://github.com/ThiefMaster/maildump))\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 of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject 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, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nChangeLog\n---------\n\n### v0.1.2\n\n* fixed encoding issues\n\n### v0.1.0\n\n* better support for macOS/OSX\n* links now opens in new tab/window (added 'target=\"blank\"')\n* show message if there is no assets generated and info hoto to generate them\n* added debugs for SMTP when in debug mode\n* added support for [Pipenv](https://docs.pipenv.org/)\n* HTML tab is default now when looking at particular message\n* converted to support Python 3.6+, drop support for lower Python versions\n* added SMTP auth support (look at [pull request 28](https://github.com/ThiefMaster/maildump/pull/28) )\n* copy from [MailDump](https://github.com/ThiefMaster/maildump) v0.5.6\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/msztolcman/mailtrap", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/msztolcman/mailtrap", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "mailtrap", "package_url": "https://pypi.org/project/mailtrap/", "platform": "", "project_url": "https://pypi.org/project/mailtrap/", "project_urls": { "Download": "https://github.com/msztolcman/mailtrap", "Homepage": "https://github.com/msztolcman/mailtrap" }, "release_url": "https://pypi.org/project/mailtrap/0.1.2/", "requires_dist": [ "Flask", "Flask-Assets", "Logbook", "beautifulsoup4", "cssmin", "cssprefixer", "cssutils", "gevent", "gevent-socketio-hartwork", "gevent-websocket", "html5lib", "lockfile", "passlib", "pyScss", "python-daemon", "pytz" ], "requires_python": "", "summary": "An SMTP server that makes all received mails accessible via a web interface and REST API.", "version": "0.1.2" }, "last_serial": 4134983, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "4868258a1b91674dce1e2903daefb0d2", "sha256": "19a74b9753abb0fc6fde1e8ae196a0cfaa5432e198b9f746daa9d99566502a36" }, "downloads": -1, "filename": "mailtrap-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "4868258a1b91674dce1e2903daefb0d2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 660137, "upload_time": "2018-07-29T09:05:20", "url": "https://files.pythonhosted.org/packages/71/0b/639dc856fd9c04d55f1c446535e439d8f92598ff27ae7fac15bb3d4ff5dd/mailtrap-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "59c6c2ea8b41b1ddc13077bf64487c97", "sha256": "557eacfd674fe8b4d8d93fccbd7ca710c78d17ee06dae2de6eab4ba855b4a169" }, "downloads": -1, "filename": "mailtrap-0.1.1.tar.gz", "has_sig": false, "md5_digest": "59c6c2ea8b41b1ddc13077bf64487c97", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 642157, "upload_time": "2018-07-29T09:05:22", "url": "https://files.pythonhosted.org/packages/ae/43/781716e3b12dad52aae68bd9683915cd265013033512d3024c278ac4867a/mailtrap-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "891cf282189416d58553506bd7e855a0", "sha256": "77652d68093134281ebde0c2e91c12a3d2b0f69286687417eb824b303198511c" }, "downloads": -1, "filename": "mailtrap-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "891cf282189416d58553506bd7e855a0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 660679, "upload_time": "2018-08-04T06:41:05", "url": "https://files.pythonhosted.org/packages/17/c5/ba0fd8287a0eea29033b1c2d835f16d288f82b6601a2c44ca598624d9281/mailtrap-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c1f3bf92a25f2b35a20a6c6f131a57ea", "sha256": "7172b3377b2bd1b95d7a6a3ac3658db71c98f1b31c646a8c402d5f746402cba2" }, "downloads": -1, "filename": "mailtrap-0.1.2.tar.gz", "has_sig": false, "md5_digest": "c1f3bf92a25f2b35a20a6c6f131a57ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 642801, "upload_time": "2018-08-04T06:41:07", "url": "https://files.pythonhosted.org/packages/54/d9/47146a34189534c0e37ea2ff0af30a435bedc1833e0ff79c2157f088a49e/mailtrap-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "891cf282189416d58553506bd7e855a0", "sha256": "77652d68093134281ebde0c2e91c12a3d2b0f69286687417eb824b303198511c" }, "downloads": -1, "filename": "mailtrap-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "891cf282189416d58553506bd7e855a0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 660679, "upload_time": "2018-08-04T06:41:05", "url": "https://files.pythonhosted.org/packages/17/c5/ba0fd8287a0eea29033b1c2d835f16d288f82b6601a2c44ca598624d9281/mailtrap-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c1f3bf92a25f2b35a20a6c6f131a57ea", "sha256": "7172b3377b2bd1b95d7a6a3ac3658db71c98f1b31c646a8c402d5f746402cba2" }, "downloads": -1, "filename": "mailtrap-0.1.2.tar.gz", "has_sig": false, "md5_digest": "c1f3bf92a25f2b35a20a6c6f131a57ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 642801, "upload_time": "2018-08-04T06:41:07", "url": "https://files.pythonhosted.org/packages/54/d9/47146a34189534c0e37ea2ff0af30a435bedc1833e0ff79c2157f088a49e/mailtrap-0.1.2.tar.gz" } ] }