MailHog is an email testing tool for developers. Provides SMTP server, with web or API access.
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.
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:
http://<container address>/,http://<container address>/api).The <container address> is the IP address bind to the running instance.
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.
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.
Content type
Image
Digest
Size
5.3 GB
Last updated
almost 8 years ago
docker pull origaminetwork/mailhog:1.0.0.0.26