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
8 Replies
Project ID:
N/A
n/a
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?
its known that Gmail blocks login attempts from server environments, nothing Railway can do, I suggest using a business email instead of gmail
Solution
use Resend
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
true, but I still would strongly recommend against using Gmail for anything even semi professional
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