flap27
WWasp-lang
•Created by flap27 on 10/21/2024 in #đŸ™‹questions
SMTP doesn't send emails on production
Hey, I just saw you answer, thank you. And you're right, that was the issue, but I didn't know how to change that IP address. I was able to resolve the issue by adding an add-on from Mailgun to Heroku. Somehow that helped (I didn't have the time to check why). Fundamentally I use Brevo's SMTP but Mailgun add-on helps. How can change the SMTP server IP though? In my
.env.server
file I had the right one.9 replies
WWasp-lang
•Created by flap27 on 10/21/2024 in #đŸ™‹questions
SMTP doesn't send emails on production
The full error message from the heroku console: Failed to send email Error: connect ECONNREFUSED 127.0.0.1:587
at node_internal_captureLargerStackTrace (node:internal/errors:496:5)
at node_internal_exceptionWithHostPort (node:internal/errors:671:12)
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16) {
errno: -111,
code: 'ESOCKET',
syscall: 'connect',
address: '127.0.0.1',
port: 587,
command: 'CONN'
}
9 replies