11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/ring/sqa/alarm/email.rb', line 11
def send opts
short, long = opts[:short], opts[:long]
@from = CFG.email.from
@to = [CFG.email.to].flatten
prefix = CFG.email.prefix? ? CFG.email.prefix : ''
@list_id = CFG.email.list_id? ? CFG.email.list_id : LIST_ID
@subject = prefix + short
@reply_to = CFG.email.reply_to? ? CFG.email.reply_to : @from
@body = long
send_email compose_email
rescue => error
Log.error "Email raised '#{error.class}' with message '#{error.message}'"
end
|