Sha256: 8ad6ad042ea2383641441b23572600c68cb0ea2c3a3d386c0f27c2344b0d4bcb
Contents?: true
Size: 731 Bytes
Versions: 4
Compression:
Stored size: 731 Bytes
Contents
module Mack module Notifier module DeliveryHandlers # :nodoc: # Delivers Mack::Notifier objects using sendmail. module Sendmail def self.deliver(mail) sendmail_settings = configatron.mack.notifier.sendmail sendmail_args = sendmail_settings.arguments sendmail_args += " -f \"#{mail.reply_to}\"" if mail.reply_to IO.popen("#{sendmail_settings.location} #{sendmail_args}","w+") do |sm| sm.print(mail.deliverable.gsub(/\r/, '')) sm.flush end end end # SendMail # Alias of SendMail to Sendmail SendMail = Sendmail # :nodoc: end # DeliveryHandlers end # Notifier end # Mack
Version data entries
4 entries across 4 versions & 1 rubygems