500 Error code on POST related to email service
claralopezuribe
HOBBYOP

6 months ago

Hello! I am a self-taught web developer just learning about deployment infrastructure for my personal projects. I have struggled for the past week or more trouble shooting this issue on project 70120f77-b5fa-4798-8563-f39f7be5c489 (Please see the staging environment I created to continue troubleshooting my code…in case all the changes I was making to my code were misguided). Because I am fairly new to coding and deploying applications, I am not 100% sure what the root cause of this may be.

When testing locally, sending emails from my app works as expected. For example, the ForgotPassword process that takes in user email, and then constructs and sends a password reset email when submitted, fails. I have verified that all of the Mail variables match the ones on Railway.

As I was preparing to post this request for help, I discovered this related thread. Would you please let me know of this could be the core issue, before I go down another rabbit hole šŸ™ .

https://station.railway.com/questions/smtp-65969dff#yzxv

In gratitude,
Clara

4 Replies

6 months ago

Hey there! Outbound SMTP email services are only allowed on the Pro plan.
Hobby and free do not have the ability.


claralopezuribe
HOBBYOP

6 months ago

Thanks for your reply! I see that the email service recommended by Railway is Resend. I just started looking at their documentation, but could you please clarify how this email service is different than MimeKit/MailKit that I use in my application? Does Resend replace these, or do those packages stay in place as I add on Resend to the application?


6 months ago

Resend will proxy your email sending. You contact their server over HTTP and then they send the email on your behalf from their server.


claralopezuribe
HOBBYOP

6 months ago

Ok, I will work on figuring it out with their documentation. Thank you.


Loading...