Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nigel Kukard
wiaflos
Commits
137e93b9
Commit
137e93b9
authored
Jul 14, 2019
by
Nigel Kukard
Browse files
Slightly better invoice email subject
parent
39c7e15e
Pipeline
#4103
passed with stages
in 2 minutes and 46 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
wiaflos-server.conf
View file @
137e93b9
...
...
@@ -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=
...
...
wiaflos/server/core/Invoicing.pm
View file @
137e93b9
...
...
@@ -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
'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment