X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpay_batch.pm;h=3079db10fa865ce47a9ac0666a7f4085b839a95e;hb=f13c9d8580d02851b150e21ea9beb6fc1dfbd3c8;hp=b6b69f3adbd2442a3e65fde7c1dd7a3c1a2bbc91;hpb=412bc43b866761bbdf5db3833960ebe6db1cac18;p=freeside.git diff --git a/FS/FS/pay_batch.pm b/FS/FS/pay_batch.pm index b6b69f3ad..3079db10f 100644 --- a/FS/FS/pay_batch.pm +++ b/FS/FS/pay_batch.pm @@ -749,7 +749,10 @@ sub import_from_gateway { my $body = "Import from gateway ".$gateway->label."\n".$error_text; send_email( to => $mail_on_error, - from => $conf->config('invoice_from'), + from => $conf->config('invoice_from_name') ? + $conf->config('invoice_from_name') . ' <' . + $conf->config('invoice_from') . '>' : + $conf->config('invoice_from'), subject => $subject, body => $body, );