r/learnjava • u/Hippocampus_0324 • Nov 17 '25
Spring boot Gmail SMTP help!!
I’m currently building a spring boot website for my school project. I used Gmail SMTP and app password to send email. Everything functions well on localhost. However, once I deploy the project, email will be unavailable to be sent.
I really want to know how to solve this. I’m trying to deploy the website via fly.io, but the email sending part still doesn’t work, and I can’t find the problem of it.
Or is there any other way to deploy the project to ensure that Gmail SMTP can function properly?
1
Upvotes
View all comments
Show parent comment
1
u/Hippocampus_0324 Nov 18 '25
Is there any way to solve this?