Sha256: 628f63faeff481595c9fff90c98b7f26beb9b611dd083fc262a8158e0621518b
Contents?: true
Size: 536 Bytes
Versions: 20
Compression:
Stored size: 536 Bytes
Contents
module Mail class Exim < Sendmail def deliver!(mail) envelope_from = mail.return_path || mail.sender || mail.from_addrs.first return_path = "-f \"#{envelope_from.to_s.shellescape}\"" if envelope_from arguments = [settings[:arguments], return_path].compact.join(" ") self.class.call(settings[:location], arguments, mail) end def self.call(path, arguments, mail) IO.popen("#{path} #{arguments}", "w+") do |io| io.puts mail.encoded.to_lf io.flush end end end end
Version data entries
20 entries across 20 versions & 2 rubygems