Cant get Gmail working in the Plane Template
muffintecdip
PROOP

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

muffintecdip
PROOP

a year ago

1c60876b-829c-413a-9391-fb43dc9fb231


dev
MODERATOR

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


muffintecdip
PROOP

a year ago

ok let me try that


muffintecdip
PROOP

a year ago

@Fragly did you set it up like this?

1251894283263410200


dev
MODERATOR

a year ago

Yea, that seems about right


muffintecdip
PROOP

a year ago

still failed to send the email


dev
MODERATOR

a year ago

did you specify your username and password at the bottom?


muffintecdip
PROOP

a year ago

but my instance is also still running on the railway url: "https://plane-production-6632.up.railway.app/god-mode/email/"


muffintecdip
PROOP

a year ago

nope


dev
MODERATOR

a year ago

I'm pretty sure that is required for any gmail smtp


dev
MODERATOR

a year ago

here's my setup

1251894690291388400


dev
MODERATOR

a year ago

( slightly older version of plane )


muffintecdip
PROOP

a year ago

how did you setup the gmail for this? is this just your email with the sso password?


muffintecdip
PROOP

a year ago

i did read that the sso password differs from the email password


dev
MODERATOR

a year ago

In my gmail settings I set up custom emails here:

1251896192762380500


dev
MODERATOR

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 ^


dev
MODERATOR

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


dev
MODERATOR

a year ago

( I think, I set these up a long time ago so I may be misremembering the exact details )


muffintecdip
PROOP

a year ago

where can i find this app passwords? i did read this but i am unable to find the point where to setup this app


dev
MODERATOR

a year ago

Google Account -> Security -> 2-Step Verification -> App Passwords


muffintecdip
PROOP

a year ago

thanks


dev
MODERATOR

a year ago

no problem!


muffintecdip
PROOP

a year ago

Still no success with the app password

1251899391514509300


muffintecdip
PROOP

a year ago

its so weird that i cant even see the reason for it


dev
MODERATOR

a year ago

try turning email security off


muffintecdip
PROOP

a year ago

1251899586768015400


muffintecdip
PROOP

a year ago

Plane hates me, the only reason i can think off 😄


dev
MODERATOR

a year ago

<:PepeThink:585531518701797401>


muffintecdip
PROOP

a year ago

and i cant even see any error message in the api container


dev
MODERATOR

a year ago

and you did add the email to your Gmail settings, right?


muffintecdip
PROOP

a year ago

yes


muffintecdip
PROOP

a year ago

the only thing i changed was, that i use my real email as a sender instead of an alias


muffintecdip
PROOP

a year ago

but this shouldnt make a difference


dev
MODERATOR

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 🤣


muffintecdip
PROOP

a year ago

that does only work if i have another email, which i dont have


dev
MODERATOR

a year ago

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)


muffintecdip
PROOP

a year ago

the second step is the problem, i can add an alias but this email have to exist lol


dev
MODERATOR

a year ago

oh 🤣


muffintecdip
PROOP

a year ago

so, not really an alias in my eyes


dev
MODERATOR

a year ago

well i've never tried sending emails via a base gmail address before so idrk how to do that


muffintecdip
PROOP

a year ago

i also added as alias my other email, but still, failed to send


dev
MODERATOR

a year ago

was hi@tecdip.com just a placeholder then?


muffintecdip
PROOP

a year ago

Nope


muffintecdip
PROOP

a year ago

this also did work

1251902768403189800


muffintecdip
PROOP

a year ago

but cant change a port or something.


muffintecdip
PROOP

a year ago

so fed up with this google shit


dev
MODERATOR

a year ago

I am not really sure how it is possible to configure that without specifying a port


dev
MODERATOR

a year ago

Honestly it might just be better using a dedicated smtp server
gmail smtp is known to be unreliable on Railway


dev
MODERATOR

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


Loading...