Class: Sonar::Connector::Emailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
lib/sonar_connector/emailer.rb

Instance Method Summary collapse

Instance Method Details

#admin_message(connector, message) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/sonar_connector/emailer.rb', line 4

def admin_message(connector, message)
  from          Sonar::Connector::CONFIG.email_settings["admin_sender"]
  recipients    Sonar::Connector::CONFIG.email_settings["admin_recipients"]
  subject       "Admin email from Sonar Connector"
  content_type  "text/plain"
  body          <<-BODY
Admin email from Sonar Connector. The connector '#{connector.name}' sent the following message:
#{message}
BODY
end