mirror of
https://gitlab.com/ric_harvey/MailHog.git
synced 2024-11-23 14:24:03 +00:00
Merge branch 'master' into patch-1
This commit is contained in:
commit
3d99094245
1 changed files with 33 additions and 8 deletions
41
README.md
41
README.md
|
@ -18,14 +18,39 @@ MailHog is an email testing tool for developers:
|
||||||
* View messages in the web UI, or retrieve them with the JSON API
|
* View messages in the web UI, or retrieve them with the JSON API
|
||||||
* Optionally release messages to real SMTP servers for delivery
|
* Optionally release messages to real SMTP servers for delivery
|
||||||
|
|
||||||
### Getting started
|
### Installation
|
||||||
|
|
||||||
1. Either:
|
#### Manual installation
|
||||||
* [Download the latest release](/docs/RELEASES.md) of MailHog for your platform
|
[Download the latest release for your platform](/docs/RELEASES.md). Then
|
||||||
* [Run it from Docker Hub](https://registry.hub.docker.com/r/mailhog/mailhog/) or using the provided [Dockerfile](Dockerfile)
|
[read the deployment guide](/docs/DEPLOY.md) for deployment options.
|
||||||
* [Read the deployment guide](/docs/DEPLOY.md) for other deployment options
|
|
||||||
* Install it with Homebrew on MacOS - `brew update && brew install mailhog`
|
#### MacOS
|
||||||
2. [Configure MailHog](/docs/CONFIG.md), or use the default settings:
|
```bash
|
||||||
|
brew update && brew install mailhog
|
||||||
|
```
|
||||||
|
|
||||||
|
Then, start MailHog by running `mailhog` in the command line.
|
||||||
|
|
||||||
|
#### Debian / Ubuntu
|
||||||
|
```bash
|
||||||
|
sudo apt-get -y install golang-go
|
||||||
|
go get github.com/mailhog/MailHog
|
||||||
|
```
|
||||||
|
|
||||||
|
Then, start MailHog by running `/path/to/MailHog` in the command line.
|
||||||
|
|
||||||
|
E.g. the path to Go's bin files on Ubuntu is `~/go/bin/`, so to start the MailHog run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
~/go/bin/MailHog
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Docker
|
||||||
|
[Run it from Docker Hub](https://registry.hub.docker.com/r/mailhog/mailhog/) or using the provided [Dockerfile](Dockerfile)
|
||||||
|
|
||||||
|
### Configuration
|
||||||
|
|
||||||
|
Check out how to [configure MailHog](/docs/CONFIG.md), or use the default settings:
|
||||||
* the SMTP server starts on port 1025
|
* the SMTP server starts on port 1025
|
||||||
* the HTTP server starts on port 8025
|
* the HTTP server starts on port 8025
|
||||||
* in-memory message storage
|
* in-memory message storage
|
||||||
|
@ -62,7 +87,7 @@ You can also use `MailHog sendmail ...` instead of the separate mhsendmail binar
|
||||||
|
|
||||||
Alternatively, you can use your native `sendmail` command by providing `-S`, for example:
|
Alternatively, you can use your native `sendmail` command by providing `-S`, for example:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
/usr/sbin/sendmail -S mail:1025
|
/usr/sbin/sendmail -S mail:1025
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue