29 Oct 2023 // ActionMailer, Generators
RailsNotes UI Blog
Learn ActionMailer with these handy articles — Topic include mailer testing, writing better mailer templates, plus handy tips and tricks.
This is a short and sweet article covering `rails generate mailer`, the Rails generator for ActionMailer, plus all it's options. I cover it's basic usage to generate an ActionMailer mailer with some mailer methods, then dig into all the flags we can pass.
24 Oct 2023 // ActionMailer, AttachmentsActionMailer makes it easy to attach files to your emails. In this article, I show you how to attach single or multiple files, set custom encodings and mime_types, and attach images as inline attachments to display in your email body.
23 Oct 2023 // ActionMailer, TipsThis is a short article on using CC and BCC in your ActionMailer mailers, to send emails to multiple recipients. Rails makes this really easy, but this article also walks you through some more complex examples of using these methods.
21 Oct 2023 // ActionMailer, TestingSending test emails for ActionMailer is a pain! Sending them via the console is annoying since you can only send a single email at a time. To fix this, I've put together a console script for bulk sending ActionMailer emails. This makes it much easier to test emails in your Ruby on Rails app.