summaryrefslogtreecommitdiff
path: root/FS/FS/cust_credit.pm
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-01-27 16:25:18 -0600
committerJonathan Prykop <jonathan@freeside.biz>2015-01-27 16:25:18 -0600
commitf13c9d8580d02851b150e21ea9beb6fc1dfbd3c8 (patch)
tree0d3c6ad7f0e7a5dd3068d34fb90f996fc2aadd02 /FS/FS/cust_credit.pm
parent412bc43b866761bbdf5db3833960ebe6db1cac18 (diff)
Ticket #30613: Can't Send E-mail
Diffstat (limited to 'FS/FS/cust_credit.pm')
-rw-r--r--FS/FS/cust_credit.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/FS/FS/cust_credit.pm b/FS/FS/cust_credit.pm
index df2a6cc..6f4f720 100644
--- a/FS/FS/cust_credit.pm
+++ b/FS/FS/cust_credit.pm
@@ -282,7 +282,10 @@ sub delete {
my $cust_main = $self->cust_main;
my $error = send_email(
- 'from' => $conf->config('invoice_from', $self->cust_main->agentnum),
+ 'from' => $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),
#invoice_from??? well as good as any
'to' => $conf->config('deletecredits'),
'subject' => 'FREESIDE NOTIFICATION: Credit deleted',