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