mails

in real life, we don't send mail like this, this may block the request-response loop and cause a timeout, we usually send email and other heavy lifting job in a background job, you could investigate `sidekiq`, see how you could improve this