summaryrefslogtreecommitdiff
path: root/FS/FS/cust_bill.pm
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-01-29 18:00:36 -0600
committerJonathan Prykop <jonathan@freeside.biz>2015-01-29 18:00:36 -0600
commit8f695e657e4f97cbf9ebbf99c3c2dd24bb9aea2f (patch)
tree94f06b305ea4387bc9c8b454452d143c0d2a00de /FS/FS/cust_bill.pm
parentfbdaf36fb33a44a453e23bc2dc8d18637b40dae9 (diff)
RT#30613: Can't Send E-mail
Diffstat (limited to 'FS/FS/cust_bill.pm')
-rw-r--r--FS/FS/cust_bill.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index 6ded57f..d2a6ded 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -1085,10 +1085,7 @@ sub email {
# this is where we set the From: address
$from ||= $self->_agent_invoice_from || #XXX should go away
- $conf->config('invoice_from_name', $self->cust_main->agentnum ) ?
- $conf->config('invoice_from_name', $self->cust_main->agentnum ) . ' <' .
- $conf->config('invoice_from', $self->cust_main->agentnum ) . '>' :
- $conf->config('invoice_from', $self->cust_main->agentnum );
+ $conf->invoice_from_full( $self->cust_main->agentnum );
my @invoicing_list = $self->cust_main->invoicing_list_emailonly;