5 days ago
Hi,
I'm hosting my app on Railway (I'm on the Hobby plan, the $5 one) and I need to send emails (login codes, contact form) using Gmail.
When someone tries to log in or submit the contact form, the app tries to connect to smtp.gmail.com port 587 but it fails. In the deploy logs I see:
OSError: [Errno 101] Network is unreachable
The same Gmail and App Password work when I run the app locally. So I think the problem is that from Railway's servers the connection to Gmail (port 587) is blocked or not allowed.
Can you tell me:
1) Is outbound SMTP (port 587) blocked on the Hobby plan?
2) If yes, is there any way to send transactional emails on the $5 plan (e.g. different port or an allowed method), or do I need to upgrade?
I'm not very technical so a simple answer would help. Thank you.
Pinned Solution
5 days ago
Hi! Email delivery is only available on the Pro plan and above.
You can still use services like Resend, Sendgrid, Postmark for email sending.
See more info here: https://docs.railway.com/networking/outbound-networking#email-delivery
1 Replies
Status changed to Awaiting Railway Response Railway • 5 days ago
5 days ago
Hi! Email delivery is only available on the Pro plan and above.
You can still use services like Resend, Sendgrid, Postmark for email sending.
See more info here: https://docs.railway.com/networking/outbound-networking#email-delivery
Status changed to Solved brody • 4 days ago