Sha256: 0266f471775d5f832d9d4a0136542da7a8cfd22d43516cd9d2879803afef99fb
Contents?: true
Size: 740 Bytes
Versions: 4
Compression:
Stored size: 740 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_settings 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