Why Letter opener gem doesn't open your letters
Last updated on December 20, 2021
Letteropener is a great gem for opening letters locally. It has one of the easiest configurations out of any gem. Up until now, it was working as intended when all of a sudden it just stopped working.
Earlier this week, I was developing a new feature for my client. I was almost done with it - I just needed to see how the final email would look like. Easy enough - letteropener to the rescue. But for some reason, I didn't receive my emails as usual.
The usual helpers - Stack Overflow and Github Issues were of no use.
Debug, Debug, Debug 🔬
I had no idea that you can do ExampleMailer.deliver! instead of .deliver_later or .deliver.
This gave me the error
1letter opener SMTP To address may not be blank
Level up your web development skills
Get articles, guides and interviews right in your inbox. Join a community of fellow developers.
No spam. Unsubscribe at any time.