docker-smtp
docker-smtp copied to clipboard
Add SMTP config to docker container
Hi, I have a application running inside docker container, and my application has a functionality of sending emails to the registered user.
Problem :
- Email functionality of the application is not working
- Application is not able to send the emails from the docker container
I believe the smtp support has not added to the docker container, can you please let me know on how to add the smtp server, so that i can send email from the application.
I have an email like, [email protected] which is my organization email id and i want my application to send an email to the users using [email protected] as from address.
- deploy this container using your orchestration tool and your credentials to your outside smtp-service (mailgun, sendinblue, …)
- link this container as "mail" to your application container (they have to be in the same stack/network)
- configure your application to use
mail:25
as outgoing smtp-server.
how configure this container when i started it ? i have started the container with docker run namshi/smtp and then ? how i should configure the smtp settings ?
Just follow the instructions in readme.md File. You have to set the right env vars.