Class: Mail::Exim

Inherits:
Object
  • Object
show all
Defined in:
lib/backup/notifier/mail.rb

Class Method Summary collapse

Class Method Details

.call(path, arguments, destinations, encoded_message) ⇒ Object



242
243
244
245
246
247
# File 'lib/backup/notifier/mail.rb', line 242

def self.call(path, arguments, destinations, encoded_message)
  popen "#{path} #{arguments}" do |io|
    io.puts encoded_message.to_lf
    io.flush
  end
end