Methods

Class/Module Index [+]

Quicksearch

Mail::Exim

Public Class Methods

call(path, arguments, mail) click to toggle source
# File lib/mail/network/delivery_methods/exim.rb, line 12
def self.call(path, arguments, mail)
  IO.popen("#{path} #{arguments}", "w+") do |io|
    io.puts mail.encoded.to_lf
    io.flush
  end
end

Public Instance Methods

deliver!(mail) click to toggle source
# File lib/mail/network/delivery_methods/exim.rb, line 5
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

[Validate]

Generated with the Darkfish Rdoc Generator 2.