import a2billing username as charged_party, RT#32909
[freeside.git] / FS / FS / Cron / agent_email.pm
index f3fb945..6bc1cc6 100644 (file)
@@ -12,7 +12,7 @@ use FS::Record qw(qsearch);# qsearchs);
 use FS::agent;
 
 @EXPORT_OK = qw ( agent_email );
-$DEBUG = 1;
+$DEBUG = 0;
 
 sub agent_email {
   my %opt = @_;
@@ -29,7 +29,7 @@ sub agent_email {
     RT::ConnectToDatabase();
   }
 
-  my $from = $conf->config('invoice_from');
+  my $from = $conf->invoice_from_full();
 
   my $outbuf = '';;
   my( $fs_interp, $rt_interp ) = mason_interps('standalone', 'outbuf'=>\$outbuf);