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

15 lines
355 B
Ruby
Raw Normal View History

2014-02-03 19:23:00 +00:00
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
2014-12-27 15:25:58 +00:00
class Channel::Sendmail
include 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