Railway blocks Gmail SMTP — we use your PHP mailer endpoint instead.
Use a Gmail App Password — generate here.