{"id":13400614,"url":"https://github.com/mailhog/MailHog","last_synced_at":"2025-03-14T06:31:47.373Z","repository":{"id":16113460,"uuid":"18858585","full_name":"mailhog/MailHog","owner":"mailhog","description":"Web and API based SMTP testing","archived":false,"fork":false,"pushed_at":"2024-02-13T18:38:41.000Z","size":2979,"stargazers_count":13970,"open_issues_count":249,"forks_count":1060,"subscribers_count":153,"default_branch":"master","last_synced_at":"2024-10-14T20:26:10.093Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"dghubble/go-twitter","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mailhog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-04-16T22:28:49.000Z","updated_at":"2024-10-14T20:18:25.000Z","dependencies_parsed_at":"2022-07-14T07:00:39.182Z","dependency_job_id":"71d89a41-3289-4998-b2b6-6e437cbe2baf","html_url":"https://github.com/mailhog/MailHog","commit_stats":{"total_commits":262,"total_committers":38,"mean_commits":6.894736842105263,"dds":"0.16412213740458015","last_synced_commit":"e6fa06877ef61ea82bbef234d94bdc75cca478d1"},"previous_names":["ian-kent/go-mailhog"],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mailhog%2FMailHog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mailhog%2FMailHog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mailhog%2FMailHog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mailhog%2FMailHog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mailhog","download_url":"https://codeload.github.com/mailhog/MailHog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243537781,"owners_count":20307098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T19:00:53.940Z","updated_at":"2025-03-14T06:31:47.366Z","avatar_url":"https://github.com/mailhog.png","language":"Go","readme":"MailHog [ ![Download](https://img.shields.io/github/release/mailhog/MailHog.svg) ](https://github.com/mailhog/MailHog/releases/tag/v1.0.0) [![GoDoc](https://godoc.org/github.com/mailhog/MailHog?status.svg)](https://godoc.org/github.com/mailhog/MailHog) [![Build Status](https://travis-ci.org/mailhog/MailHog.svg?branch=master)](https://travis-ci.org/mailhog/MailHog)\n=========\n\nInspired by [MailCatcher](https://mailcatcher.me/), easier to install.\n\n* Download and run MailHog\n* Configure your outgoing SMTP server\n* View your outgoing email in a web UI\n* Release it to a real mail server\n\nBuilt with Go - MailHog runs without installation on multiple platforms.\n\n### Overview\n\nMailHog is an email testing tool for developers:\n\n* Configure your application to use MailHog for SMTP delivery\n* View messages in the web UI, or retrieve them with the JSON API\n* Optionally release messages to real SMTP servers for delivery\n\n### Installation\n\n#### Manual installation\n[Download the latest release for your platform](/docs/RELEASES.md). Then\n[read the deployment guide](/docs/DEPLOY.md) for deployment options.\n\n#### MacOS\n```bash\nbrew update \u0026\u0026 brew install mailhog\n```\n\nThen, start MailHog by running `mailhog` in the command line.\n\n#### Debian / Ubuntu Go \u003c v1.18\n```bash\nsudo apt-get -y install golang-go\ngo get github.com/mailhog/MailHog\n```\n\n#### Go \u003e= v1.17 (Debian Bookworm) \n```bash\nsudo apt-get -y install golang-go\ngo install github.com/mailhog/MailHog@latest\n```\n\nThen, start MailHog by running `/path/to/MailHog` in the command line.\n\nE.g. the path to Go's bin files on Ubuntu is `~/go/bin/`, so to start the MailHog run:\n\n```bash\n~/go/bin/MailHog\n```\n\n#### FreeBSD\n```bash\npkg install mailhog\nsysrc mailhog_enable=\"YES\"\nservice mailhog start\n```\n\n#### Docker\n[Run it from Docker Hub](https://registry.hub.docker.com/r/mailhog/mailhog/) or using the provided [Dockerfile](Dockerfile)\n\n### Configuration\n\nCheck out how to [configure MailHog](/docs/CONFIG.md), or use the default settings:\n  * the SMTP server starts on port 1025\n  * the HTTP server starts on port 8025\n  * in-memory message storage\n\n### Features\n\nSee [MailHog libraries](docs/LIBRARIES.md) for a list of MailHog client libraries.\n\n* ESMTP server implementing RFC5321\n* Support for SMTP AUTH (RFC4954) and PIPELINING (RFC2920)\n* Web interface to view messages (plain text, HTML or source)\n  * Supports RFC2047 encoded headers\n* Real-time updates using EventSource\n* Release messages to real SMTP servers\n* Chaos Monkey for failure testing\n  * See [Introduction to Jim](/docs/JIM.md) for more information\n* HTTP API to list, retrieve and delete messages\n  * See [APIv1](/docs/APIv1.md) and [APIv2](/docs/APIv2.md) documentation for more information\n* [HTTP basic authentication](docs/Auth.md) for MailHog UI and API\n* Multipart MIME support\n* Download individual MIME parts\n* In-memory message storage\n* MongoDB and file based storage for message persistence\n* Lightweight and portable\n* No installation required\n\n#### sendmail\n\n[mhsendmail](https://github.com/mailhog/mhsendmail) is a sendmail replacement for MailHog.\n\nIt redirects mail to MailHog using SMTP.\n\nYou can also use `MailHog sendmail ...` instead of the separate mhsendmail binary.\n\nAlternatively, you can use your native `sendmail` command by providing `-S`, for example:\n\n```bash\n/usr/sbin/sendmail -S mail:1025\n```\n\nFor example, in PHP you could add either of these lines to `php.ini`:\n\n```\nsendmail_path = /usr/local/bin/mhsendmail\nsendmail_path = /usr/sbin/sendmail -S mail:1025\n```\n\n#### Web UI\n\n![Screenshot of MailHog web interface](/docs/MailHog.png \"MailHog web interface\")\n\n### Contributing\n\nMailHog is a rewritten version of [MailHog](https://github.com/ian-kent/MailHog), which was born out of [M3MTA](https://github.com/ian-kent/M3MTA).\n\nClone this repository to ```$GOPATH/src/github.com/mailhog/MailHog``` and type ```make deps```.\n\nSee the [Building MailHog](/docs/BUILD.md) guide.\n\nRequires Go 1.4+ to build.\n\nRun tests using ```make test``` or ```goconvey```.\n\nIf you make any changes, run ```go fmt ./...``` before submitting a pull request.\n\n### Licence\n\nCopyright ©‎ 2014 - 2017, Ian Kent (http://iankent.uk)\n\nReleased under MIT license, see [LICENSE](LICENSE.md) for details.\n","funding_links":[],"categories":["Go","开源类库","Email","others","Basic Commands",":wave: Description","Software","Tools","General development tools","Open source library","Sending","邮件处理工具","Go (531)","Apps","Relational Databases","电子邮件","Testing","Dev stubbing","Communication systems","通讯系统","電子郵件","Dev","邮件库`邮件管理和发送的go语言库`","邮件库","\u003cspan id=\"电子邮件-email\"\u003e电子邮件 Email\u003c/span\u003e","邮件"],"sub_categories":["邮件","Search and Analytic Databases","Advanced Console UIs","Email Server","Communication - Email - Mail Transfer Agents","Debug","Post Office","SMTP Testing","Mail","检索及分析资料库","AWS Amplify","Email","高級控制台界面","VMs and environments","SQL 查询语句构建库","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","Misc","高级控制台界面"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmailhog%2FMailHog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmailhog%2FMailHog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmailhog%2FMailHog/lists"}