Module: Hawk::Notifier

Defined in:
lib/hawk/notifier.rb

Defined Under Namespace

Modules: DSL

Instance Method Summary collapse

Instance Method Details

#notify_usersObject



21
22
23
24
25
# File 'lib/hawk/notifier.rb', line 21

def notify_users
  subject = URI.encode(ERB.new(@email_subject).result(binding)).gsub('?','%3F').gsub('&','%26')
  body = URI.encode(ERB.new(@email_body).result(binding)).gsub('?','%3F').gsub('&','%26')
  `open "mailto:?bcc=#{@users.join(',')}&subject=#{subject}&body=#{body}"`
end