R
Railway14mo 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
Percy14mo ago
Project ID: N/A
ARYA
ARYAOP14mo ago
n/a
Ayush
Ayush14mo 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
Brody14mo 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
Floris14mo ago
use Resend
Floris
Floris14mo 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
Brody14mo ago
true, but I still would strongly recommend against using Gmail for anything even semi professional
Floris
Floris14mo 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
Want results from more Discord servers?
Add your server