R
Railway8mo ago
ARYA

SMTP

I am running a nodejs Express application. When I run the smtp of Gmail in my localhost it works fine. In railway it show invalid userName and Password. I am useing othere servises also like sendGried again when I run in local hot it work fine but here it shoe anautharised
Solution:
use Resend
Jump to solution
8 Replies
Percy
Percy8mo ago
Project ID: N/A
ARYA
ARYA8mo ago
n/a
Ayush
Ayush8mo ago
I’m running a few services using SMTP clients and I’m not having any issues. I’d suggest you provide your project ID because it might be something specific. Are you sure your environment variables are set correctly?
Brody
Brody8mo ago
its known that Gmail blocks login attempts from server environments, nothing Railway can do, I suggest using a business email instead of gmail
Solution
Floris
Floris8mo ago
use Resend
Floris
Floris8mo ago
resend can SMTP into any email provider that supports SMTP and they turn it into an API for you that you can call this does run on railway
Brody
Brody8mo ago
true, but I still would strongly recommend against using Gmail for anything even semi professional
Floris
Floris8mo ago
ah yes Resend manages the emails themselves just add the TXT and MX records and ur good to go if u want its incredibly easy to setup, i would give it a shot