{= #* KHP 07/Feb/2011 - from now we send the bug_report via HTTP with POST, so this template is obsolete. include "templates.util.alert.compose_bug_report_text"; string alert_id = volatile.sys.alert_id; string sender_address = volatile.sys.sender_address; string comment = volatile.sys.comment; if (sender_address eq "-") then ( sender_address = ""; ); comment = replace_all(comment, "__LINE_FEED__", "\n"); string bug_report = compose_bug_report_text(alert_id, true); string recipient_address = "support@flowerfire.com"; if (?("preferences.email.support_email_address") and (@("preferences.email.support_email_address") ne "")) then ( recipient_address = @("preferences.email.support_email_address"); ); string smtp_server = "mail.flowerfire.com"; # debug_message("\n\nbug_report:\n" . bug_report . "\n\n"); string message = "From: " . sender_address . "\n"; message .= "To: " . recipient_address . "\n"; message .= "Subject: Sawmill Bug Report\n"; message .= "\n\n"; # 2008-12-28 - GMF - Added a blank line after COMMENT message .= "COMMENT\n" . comment . "\n\n" . bug_report . "\n"; send_email(sender_address, recipient_address, message, smtp_server); # # If there was an error while sending email, save it to TemporaryFiles (where templates.report_alert_response will find it) # if (?("volatile.send_email_error_message")) then ( string send_email_error_message_pathname = LOGANALYSISINFO_DIRECTORY . "TemporaryFiles/" . alert_id . "_send_email_error_message.txt"; write_file(send_email_error_message_pathname, volatile.send_email_error_message); ); *# =}