diff options
Diffstat (limited to 'FS/bin')
-rwxr-xr-x | FS/bin/freeside-fetch | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/FS/bin/freeside-fetch b/FS/bin/freeside-fetch index 89a4f29af..3fe1a0039 100755 --- a/FS/bin/freeside-fetch +++ b/FS/bin/freeside-fetch @@ -40,9 +40,12 @@ foreach my $employee (@employees) { my $req = new HTTP::Request GET => $url; my $res = $ua->request($req); + my $conf = new FS::Conf; + my $subject = $conf->config('email_report-subject') || 'Freeside report'; + my %options = ( 'from' => $email_address, 'to' => $email_address, - 'subject' => 'subject', + 'subject' => $subject, 'body' => $res->content, ); |