Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
5c2fc047
Commit
5c2fc047
authored
Mar 01, 2014
by
pupi1985
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
User can send an HTML notification without having to rewrite the whole logic
parent
8903a5e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
qa-app-emails.php
qa-include/qa-app-emails.php
+3
-4
No files found.
qa-include/qa-app-emails.php
View file @
5c2fc047
...
...
@@ -44,7 +44,7 @@
}
function
qa_send_notification
(
$userid
,
$email
,
$handle
,
$subject
,
$body
,
$subs
)
function
qa_send_notification
(
$userid
,
$email
,
$handle
,
$subject
,
$body
,
$subs
,
$html
=
false
)
/*
Send email to person with $userid and/or $email and/or $handle (null/invalid values are ignored or retrieved from
user database as appropriate). Email uses $subject and $body, after substituting each key in $subs with its
...
...
@@ -108,7 +108,7 @@
'toname'
=>
$handle
,
'subject'
=>
strtr
(
$subject
,
$subs
),
'body'
=>
(
empty
(
$handle
)
?
''
:
qa_lang_sub
(
'emails/to_handle_prefix'
,
$handle
))
.
strtr
(
$body
,
$subs
),
'html'
=>
false
,
'html'
=>
$html
,
));
}
else
...
...
@@ -162,4 +162,4 @@
/*
Omit PHP closing tag to help avoid accidental output
*/
\ No newline at end of file
*/
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