Skip to content

rhjensen79/smtp-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SMTP Test

Blog post related to this repo : https://www.robert-jensen.dk/posts/2021-when-testing-got-easy/

A simple repo, containing :

  • A smtp server, with webclient,
  • A python script, that sends a email, using the smtp server.

Instuctions

Make sure you have docker and docker-compose installed. Run

docker-compose up -d

from the main directory, to start the server, as a service.

Then run the python script using

python3 mail.py

log into the mail server using http://localhost:8025 and see the email, htat you just send.

To cleanup, simply run

docker-compose down

to stop the container again.

About

A simple Docker container, packaged in Docker-compose, to run a SMTP server, with web interface, along with a smtp Python script.

Topics

Resources

Stars

Watchers

Forks