trabajo-afectivo/app/models/channel/sendmail.rb

14 lines
347 B
Ruby
Raw Normal View History

# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
class Channel::Sendmail < Channel::EmailBuild
def send(attr, channel, notification = false)
# return if we run import mode
return if Setting.get('import_mode')
mail = build(attr, notification)
mail.delivery_method :sendmail
mail.deliver
end
end