X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_main%2FBilling_Realtime.pm;h=20698fbca25ef6b47afe586f36271c966db2aee3;hb=8f695e657e4f97cbf9ebbf99c3c2dd24bb9aea2f;hp=f9f3754940542d973a450cf1d3b5c0923c35e78f;hpb=f13c9d8580d02851b150e21ea9beb6fc1dfbd3c8;p=freeside.git diff --git a/FS/FS/cust_main/Billing_Realtime.pm b/FS/FS/cust_main/Billing_Realtime.pm index f9f375494..20698fbca 100644 --- a/FS/FS/cust_main/Billing_Realtime.pm +++ b/FS/FS/cust_main/Billing_Realtime.pm @@ -1109,10 +1109,7 @@ sub _realtime_bop_result { }; my $error = send_email( - 'from' => $conf->config('invoice_from_name', $self->agentnum ) ? - $conf->config('invoice_from_name', $self->agentnum ) . ' <' . - $conf->config('invoice_from', $self->agentnum ) . '>' : - $conf->config('invoice_from', $self->agentnum ), + 'from' => $conf->invoice_from_full( $self->agentnum ), 'to' => [ grep { $_ ne 'POST' } $self->invoicing_list ], 'subject' => 'Your payment could not be processed', 'body' => [ $template->fill_in(HASH => $templ_hash) ],