sendmail.rb 347 B

12345678910111213
  1. # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
  2. class Channel::Sendmail < Channel::EmailBuild
  3. def send(attr, channel, notification = false)
  4. # return if we run import mode
  5. return if Setting.get('import_mode')
  6. mail = build(attr, notification)
  7. mail.delivery_method :sendmail
  8. mail.deliver
  9. end
  10. end