Sign inSign up

origaminetwork/mailhog

By origaminetwork

•Updated almost 8 years ago

Image
1

1.3K

origaminetwork/mailhog repository overview

releasemasterlatest
latest releasemaster buildlatest build

⁠MailHog - Windows Docker image

MailHog⁠ is an email testing tool for developers. Provides SMTP server, with web or API access.

⁠Usage

This Docker image allows to use MailHog without need of installation on Windows 2016 and Windows 10. It accepts all parameters as specified by Configuring MailHog⁠ document.

⁠Pull Docker image

Before start the image need to be pulled from the Docker Hub⁠.

> docker pull origaminetwork/mailhog:X.X.X.Y

Where X.X.X.Y is the version of the image.

By default the container will expose:

  • SMTP on TCP port 25,
  • Web UI at URL http://<container address>/,
  • Web API at URL http://<container address>/api).

The <container address> is the IP address bind to the running instance.

⁠Sending email from PowerShell

In order to send the email the PowerShell Send-MailMessage⁠ can be used.

PS> Send-MailMessage -From '[email protected]' -To '[email protected]' -Subject "From PowerShell" -SmtpServer <container address>

The <container address> is the IP address bind to the running instance.

⁠Getting mails using API

In order to get mails received by the server the fallowing PowerShell command can be used.

PS> $baseUrl = 'http://<container address>/api/'
PS> Invoke-RestMethod ($baseUrl + "v2/messages")

The <container address> is the IP address bind to the running instance.

⁠Contributing

See project page on GitHub⁠.

Tag summary

Content type

Image

Digest

Size

5.3 GB

Last updated

almost 8 years ago

docker pull origaminetwork/mailhog:1.0.0.0.26