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



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

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