Sunny Ripert

1637 days ago

Rails 6 adds ActionMailer#email_address_with_name

blog.bigbinary.com

This blog is part of our Rails 6 series. Rails 6.0 was recently released. When using ActionMailer#mail, if we want to to display name and email address of the user in email, we can pass a string in format "John Smith" <john@example.com> in to, from or reply_to options.