Phlex for Rails Emails: Action Mailer without ERB

Rendering Action Mailer emails with Phlex components and layouts: Clean, Composable, and Completely Ruby - Blog post by Camillo Visini

Camillo Visini

So if you're using #Rollbar and you use `deliver_now` and then try to capture any errors with a `rescue`, you'lll discover that... well... They still get reported to Rollbar!

Turns out, Rollbar automatically instruments `ActionMailer::MailDeliveryJob` and `deliver_now` uses `ActionMailer::MailDeliveryJob` under the covers, even tho the mail is being delivered synchronously!

Anyway, that particular "gotcha!" cost us about 80 engineering hours. Should we have given up sooner? Probably...

#Ruby #Rails #ActionMailer

» GitHub - sofn-xyz/mailing: Build, test, send #emails with #React https://t.co/pPYN9r2EZd // Written in TypeScript, inspired by #ActionMailer from Ruby on Rails
GitHub - sofn-xyz/mailing: Build, test, send emails with React

Build, test, send emails with React. Contribute to sofn-xyz/mailing development by creating an account on GitHub.

GitHub