docker-smtp icon indicating copy to clipboard operation
docker-smtp copied to clipboard

Add SMTP config to docker container

Open learnTech2022 opened this issue 7 years ago • 3 comments

Hi, I have a application running inside docker container, and my application has a functionality of sending emails to the registered user.

Problem :

  1. Email functionality of the application is not working
  2. 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.

learnTech2022 avatar Apr 12 '17 11:04 learnTech2022

  1. deploy this container using your orchestration tool and your credentials to your outside smtp-service (mailgun, sendinblue, …)
  2. link this container as "mail" to your application container (they have to be in the same stack/network)
  3. configure your application to use mail:25 as outgoing smtp-server.

justb81 avatar Oct 03 '17 10:10 justb81

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 ?

mannaiagit avatar May 18 '18 10:05 mannaiagit

Just follow the instructions in readme.md File. You have to set the right env vars.

justb81 avatar Jul 21 '18 16:07 justb81