module Mailkick module Mailer def mail(headers = {}, &block) message = super Safely.safely { Mailkick::Processor.new(message).process } message end end end