diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2015-12-23 21:46:53 -0600 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2015-12-23 21:46:53 -0600 |
commit | 9dc878dba30e6d93ab914f0d2502f3527428b057 (patch) | |
tree | 7785a221898bcb3f40ef4b3dfef0725e7e4cc38c /FS/FS/msg_template | |
parent | e1aa1019e11d7a73fcf90a87dd59c71ed90adce5 (diff) |
RT#38217 Send email when logging conditions are met [default template & dump-email_to upgrade]
Diffstat (limited to 'FS/FS/msg_template')
-rw-r--r-- | FS/FS/msg_template/InitialData.pm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/FS/FS/msg_template/InitialData.pm b/FS/FS/msg_template/InitialData.pm index baf145d..29dd417 100644 --- a/FS/FS/msg_template/InitialData.pm +++ b/FS/FS/msg_template/InitialData.pm @@ -39,6 +39,20 @@ Amount: {$refund}<BR> END ], }, + { msgname => 'System log', + msgclass => 'email', + mime_type => 'text/html', + _upgrade_journal => 'system_log_email_template', + _insert_args => [ subject => '{ $company_name } system log', + body => <<'END', +Level: {$loglevel}<BR> +Context: {$logcontext}<BR> +<BR> +{$logmessage}<BR> + +END + ], + }, ]; } |