Skip to content

Instantly share code, notes, and snippets.

@craftslab
Last active December 31, 2023 02:19
Show Gist options
  • Save craftslab/ae9d77c4e7aa0887f1a8091023d88463 to your computer and use it in GitHub Desktop.
Save craftslab/ae9d77c4e7aa0887f1a8091023d88463 to your computer and use it in GitHub Desktop.
smtp deploy

Deploy

# port 25: SMTP
# port 8025: Web UI
docker run --rm --name=mailpit -p 25:1025 -p 8025:8025 axllent/mailpit:latest

Test

mailpit sendmail < email.txt

# OR
sudo apt install sendmail
sendmail -t < email.txt

Reference

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment