summaryrefslogtreecommitdiff
path: root/FS/FS/msg_template.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/msg_template.pm
parentfbdaf36fb33a44a453e23bc2dc8d18637b40dae9 (diff)
RT#30613: Can't Send E-mail
Diffstat (limited to 'FS/FS/msg_template.pm')
-rw-r--r--FS/FS/msg_template.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/FS/FS/msg_template.pm b/FS/FS/msg_template.pm
index 70a8e49..f45fb2a 100644
--- a/FS/FS/msg_template.pm
+++ b/FS/FS/msg_template.pm
@@ -398,10 +398,7 @@ sub prepare {
$from_addr = scalar( $conf->config($opt{'from_config'},
$cust_main->agentnum) );
}
- $from_addr ||= $conf->config('invoice_from_name', $cust_main->agentnum) ?
- $conf->config('invoice_from_name', $cust_main->agentnum) . ' <' .
- $conf->config('invoice_from', $cust_main->agentnum) . '>' :
- $conf->config('invoice_from', $cust_main->agentnum);
+ $from_addr ||= $conf->invoice_from_full($cust_main->agentnum);
}
# my @cust_msg = ();
# if ( $conf->exists('log_sent_mail') and !$opt{'preview'} ) {