Cant get Gmail working in the Plane Template
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.
41 Replies
Project ID:
1c60876b-829c-413a-9391-fb43dc9fb231
1c60876b-829c-413a-9391-fb43dc9fb231
GMAIL SMTP is somewhat unreliable on Railway
I've managed to get it working by using port 587 and turning TLS off
ok let me try that
@Fragly did you set it up like this?
Yea, that seems about right
still failed to send the email
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/"
nope
I'm pretty sure that is required for any gmail smtp
here's my setup
( slightly older version of plane )
how did you setup the gmail for this? is this just your email with the sso password?
i did read that the sso password differs from the email password
In my gmail settings I set up custom emails here:
the username would then be the base gmail account's email and the send as would be the email you added here ^
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
( 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
Google Account -> Security -> 2-Step Verification -> App Passwords
thanks
no problem!
Still no success with the app password
its so weird that i cant even see the reason for it
try turning email security off
Plane hates me, the only reason i can think off 😄
:PepeThink:
and i cant even see any error message in the api container
and you did add the email to your Gmail settings, right?
yes
the only thing i changed was, that i use my real email as a sender instead of an alias
but this shouldnt make a difference
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 🤣
that does only work if i have another email, which i dont have
for this to work you require 2 email adresses
1. a base gmail adress
2. 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
oh 🤣
so, not really an alias in my eyes
well i've never tried sending emails via a base gmail address before so idrk how to do that
i also added as alias my other email, but still, failed to send
Nope
this also did work
but cant change a port or something.
so fed up with this google shit
I am not really sure how it is possible to configure that without specifying a port
Honestly it might just be better using a dedicated smtp server
gmail smtp is known to be unreliable on Railway
If you really need to use a gmail smtp server then I recommend looking up a tutorial for how to set up an alias email on gmail properly
(note: most if not all of them are a bit outdated, app passwords are what you use for the password now and not what they say in the video)