Port 587 blocked on gitpod.io

Gitpod was not allowing me to send emails through the my app.

https://www.gitpod.io/contact

discord server

https://discord.com/channels/816244985187008514/839379835662368768

found another way to test out emails through a docker container using mailpit

https://mailpit.axllent.org/

docker-compose file

https://github.com/bigbeartechworld/big-bear-video-assets/blob/main/how-to-install-mailpit-on-dockge/docker-compose.yml

these are the changes I made

used his script to send test email through bash

apt-get update 
apt-get install telnet

https://github.com/bigbeartechworld/big-bear-scripts/blob/master/test-smtp-connection/run.sh

I out the bash script at the root of my project. In order to use the bash script above you need the ip address of the container. I used this link to get it

https://stackoverflow.com/questions/17157721/how-to-get-a-docker-containers-ip-address-from-the-host


when I did the above to get the Ip address it sent me back this

this is actually two ip address concatenated. So i ended up getting the ip address like this

`docker inspect mailpit | jq -r '.[].NetworkSettings.Networks."werm-network".IPAddress'`
I put in the command in the bash script
gitpod

Sent php new credentials for port and SMTP ADDRESS

it worked after

Leave a Reply

Your email address will not be published.