$tmpl =~ s/{TO}/$r->{email}/smog;
$tmpl =~ s/{FROM}/$email_sender/smog;
$tmpl =~ s/{REPLY_TO}/$email_sender/smog;
- $tmpl =~ s/{REPORT_NAME}/$r->{report}->{template}->{name} -- $r->{report}->{name}/smog;
+ $tmpl =~ s/{REPORT_NAME}/$r->{report}->{name} -- $r->{report}->{template}->{name}/smog;
$tmpl =~ s/{RUN_TIME}/$r->{run_time}/smog;
$tmpl =~ s/{COMPLETE_TIME}/$r->{complete_time}/smog;
$tmpl =~ s/{OUTPUT_URL}/$url/smog;
$tmpl =~ s/{TO}/$r->{email}/smog;
$tmpl =~ s/{FROM}/$email_sender/smog;
$tmpl =~ s/{REPLY_TO}/$email_sender/smog;
- $tmpl =~ s/{REPORT_NAME}/$r->{report}->{template}->{name} -- $r->{report}->{name}/smog;
+ $tmpl =~ s/{REPORT_NAME}/$r->{report}->{name} -- $r->{report}->{template}->{name}/smog;
$tmpl =~ s/{RUN_TIME}/$r->{run_time}/smog;
$tmpl =~ s/{ERROR_TEXT}/$r->{error_text}/smog;
$tmpl =~ s/{SQL}/$sql/smog;