a year ago
Hey, i cant send emails via Gmail inside the Plane Template for Railway.
The Error i get is:
which seems weird to me because every other api is working correctly.
49 Replies
a year ago
GMAIL SMTP is somewhat unreliable on Railway
I've managed to get it working by using port 587 and turning TLS off
a year ago
Yea, that seems about right
a year ago
did you specify your username and password at the bottom?
but my instance is also still running on the railway url: "https://plane-production-6632.up.railway.app/god-mode/email/"
a year ago
I'm pretty sure that is required for any gmail smtp
a year ago
here's my setup

a year ago
( slightly older version of plane )
how did you setup the gmail for this? is this just your email with the sso password?
a year ago
In my gmail settings I set up custom emails here:

a year ago
the username would then be the base gmail account's email and the send as would be the email you added here ^
a year ago
the password is an "App Password" that you can create in your google account (requires 2fa enabled) by going to your 2fa settings and going to app password
a year ago
( I think, I set these up a long time ago so I may be misremembering the exact details )
where can i find this app passwords? i did read this but i am unable to find the point where to setup this app
a year ago
Google Account -> Security -> 2-Step Verification -> App Passwords
a year ago
no problem!
a year ago
try turning email security off
a year ago
<:PepeThink:585531518701797401>
a year ago
and you did add the email to your Gmail settings, right?
the only thing i changed was, that i use my real email as a sender instead of an alias
a year ago
Well if that's the only difference between my working setup and your not working setup then maybe it does make difference
could you try making the Sender Email the alias email you added to your gmail account? if that doesn't work then i'm out of ideas 🤣
a year ago
for this to work you require 2 email adresses
a base gmail adress
an alias email that you've added to your base gmail adress
you then need to set your username to your base gmail adress
set the password to the same app password you used to configure the alias email address
set the port to the same port you configured on your alias email address
and finally use the alias email as the sender email (I think)
the second step is the problem, i can add an alias but this email have to exist lol
a year ago
oh 🤣
a year ago
well i've never tried sending emails via a base gmail address before so idrk how to do that
a year ago
was hi@tecdip.com just a placeholder then?
a year ago
I am not really sure how it is possible to configure that without specifying a port
a year ago
Honestly it might just be better using a dedicated smtp server
gmail smtp is known to be unreliable on Railway
a year ago
If you really need to use a gmail smtp server then I recommend looking up a tutorial for how to set one up properly



