7 months ago
Hello Railway Support Team,
I am experiencing an issue with email sending in my Laravel application after deploying it on Railway. While the mail functionality works perfectly in my local environment, it fails to send emails when deployed on Railway. Here are my current .env
settings:
MAIL_MAILER="smtp" MAIL_HOST="mail.kurumsaleposta.com" MAIL_PORT="587" MAIL_USERNAME="no-reply@***.com" MAIL_PASSWORD=<passcode> MAIL_ENCRYPTION="tls" MAIL_FROM_ADDRESS="no-reply@***.com" MAIL_FROM_NAME="***"
Issue Details:
The email sending works as expected locally with these exact configurations.
No emails are sent when the same code and configuration are deployed on Railway.
There is no clear error in the application logs; however, I suspect there might be a connection or authorization issue when reaching the SMTP server from Railway.
Additional Information:
I’ve verified that all environment variables are set correctly on Railway.
Could you please assist in resolving this, or guide me if there are any specific configurations needed for Railway to allow outbound SMTP connections?
Thank you very much for your support.
Best regards,
1 Replies
7 months ago
Hello,
We do not block any outbound traffic of any nature, especially not SMTP.
If something is preventing you from sending emails, it would be your email provider, not us.