I already have the solution to the problem colleagues.
I explain to you that I was using the railway hobby plan, which until 1 week ago if sending emails through SMTP worked, they update the terms and agreements and now the pro plan is needed to do that, although they still recommend the use of sendgrid.
So thank you very much to everyone who helped me, I send you a big technological hug