MailCatcher - is a ruby powered alpine image, based on https://mailcatcher.me. Its purpose is to provide a way of testing applications wich uses emails (i.e. sign in with email or email confirmation)
Build image from Dockerfile
docker build -t mailcatcher -f Dockerfile ./
Create and run docker container from image
You need two tcp ports:
docker run -d -p 1080:1080 -p 1025:1025 --name mailcatcher mailcatcher
curl \
-F '=(;type=multipart/alternative' \
-F '=<sample.txt;type=text/plain' \
-F '=<sample.html;type=text/html' \
-F '=)' \
-F '[email protected];encoder=base64;headers="Content-ID: sample.png"' \
--url 'smtp://localhost:1025' \
-H "Subject: Test message of 3 parts" \
--mail-from '[email protected]' \
--mail-rcpt '[email protected]'
docker logs -f mailcatcher
Address http://localhost:1080/
Content type
Image
Digest
Size
15 MB
Last updated
over 4 years ago
docker pull iliadmitriev/mailcatcher