Skip to content

This uses the wneessen/go-mail library to send a text mail to a SMTP(S) mail server

Notifications You must be signed in to change notification settings

rgl/use-go-mail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This uses the wneessen/go-mail library to send a text mail to a SMTP(S) mail server.

Usage (Ubuntu 22.04)

# create the environment defined in docker-compose.yml
# and leave it running in the background.
docker compose up --detach --build --wait

# show running containers.
docker compose ps

# show logs.
docker compose logs

# open a container network interface in wireshark.
./wireshark.sh mailpit &

# send email.
http \
  --verbose \
  POST \
  http://localhost:8000

# open mailpit (email).
xdg-open http://localhost:8025

# destroy the environment.
docker compose down --remove-orphans --volumes --timeout=0

About

This uses the wneessen/go-mail library to send a text mail to a SMTP(S) mail server

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published