What is the right way to embed image into email using Rails?
I combined the answer from Oksana with a custom helper approach and got the following to work quite nicely. app/helpers/email_helper.rb module EmailHelper def email_image_tag(image, **options) attachments[image] = File.read(Rails.root.join(“app/assets/images/#{image}”)) image_tag attachments[image].url, **options end end app/mailers/base_mailer.rb class BaseMailer < ActionMailer::Base helper(EmailHelper) end app/mailers/my_mailer.rb class MyMailer < BaseMailer def send_my_mail(email) mail to: email, subject: “My Subject” end end … Read more