Mailpit

Mailpit - email testing for developers

sudo bash < <(curl -sL https://raw.githubusercontent.com/axllent/mailpit/develop/install.sh)

# 启动 mailpit, -h for help
./mailpit. 

mailpit -h

docker

docker run -d \
--restart unless-stopped \
--name=mailpit \
-p 8025:8025 \
-p 1025:1025 \
axllent/mailpit:v1.13

mailpit sendmail

准备一个文本文件

Date: Mon, 23 Jun 2015 11:40:36 -0400
From: user0 <user0@wiloon.com>
To: user1 <user1@wiloon.com>
Subject: subject0

body0

发送邮件

mailpit sendmail < foo.txt

在浏览器里查看邮件 http://localhost:8025