require 'mail' module ActionTexter module Mail class Delivery def initialize(settings = {}) @charset = settings[:charset] end def deliver(message) mail = ::Mail.new do |mail| from message.from to message.to cc message.cc subject message.subject body message.body.to_s self.charset = @charset end #LOGGER.info(mail.body) mail.deliver! end end end end