Commit 137e93b9 authored by Nigel Kukard's avatar Nigel Kukard

Slightly better invoice email subject

parent 39c7e15e
......@@ -78,6 +78,9 @@ server = localhost
# Email attachment template
#email_template= invoices/invoice1.tt2
# Email message subject prefix
#email_subject_prefix=
# Email body template
#email_message_template=
......
......@@ -1346,13 +1346,17 @@ sub sendInvoice
# }
# }
# Build email subject
my $emailSubject = $config->{'invoicing'}{'email_subject_prefix'} // "";
$emailSubject .= "$invoiceTitle: $invoiceNumber";
# Create message
my $msg = MIME::Lite->new(
From => $config->{'invoicing'}{'email_from'},
To => $emailAddy,
Bcc => $config->{'invoicing'}{'email_bcc'},
'Reply-To' => $config->{'invoicing'}{'email_reply_to'},
Subject => "Invoice: ".$invoice->{'Number'},
Subject => $emailSubject,
Type => 'multipart/mixed'
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment