# port 25: SMTP
# port 8025: Web UI
docker run --rm --name=mailpit -p 25:1025 -p 8025:8025 axllent/mailpit:latest
mailpit sendmail < email.txt
# OR
sudo apt install sendmail
sendmail -t < email.txt
# port 25: SMTP
# port 8025: Web UI
docker run --rm --name=mailpit -p 25:1025 -p 8025:8025 axllent/mailpit:latest
mailpit sendmail < email.txt
# OR
sudo apt install sendmail
sendmail -t < email.txt
From: sender@example.com | |
To: recipient@example.com | |
Subject: Email Subject | |
This is the body of the email. | |
It can contain multiple lines of text. |