Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
f6a0b4ef
authored
2011-01-29 18:26:22 +0000
by
Kevin Burton
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
send triggered emails!
1 parent
7f16456c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
23 deletions
com/Notifications/Notifications.php
com/Notifications/Notifications.php
View file @
f6a0b4e
...
...
@@ -240,8 +240,8 @@ function send_triggered_notification($uid,$trigger="NO_TRIGGER",$args = array(),
// if is_email ===========================================
if
(
$notification
->
is_email
&&
(
(
isset
(
$notify_me
)
&&
$notify_me
)
||
$send_override
)
)
{
send_email
(
$uid
,
$email
,
$args
,
$send_override
);
if
(
$notification
->
is_email
)
{
send_email
(
$uid
,
$email
,
$args
);
}
...
...
@@ -255,27 +255,6 @@ function send_email($uid, $contents,$args) {
if
(
$uid
>
0
)
{
$user
=
new
WP_User
(
$uid
);
$to_email
=
$user
->
user_email
;
//get_user_meta($uid,'home_email',true);
/*
$preference = get_user_meta($uid, 'email_address_preference',true);
if ($preference == "Home") {
$to_email = get_user_meta($uid,'home_email',true);
} elseif ($preference == "Work") {
$to_email = get_user_meta($uid,'company_email',true);
} else {
$to_email = $user->user_email;
}
if (!(boolean)filter_var($to_email, FILTER_VALIDATE_EMAIL)) {
$to_email = $user->user_email;
}
*/
}
elseif
(
isset
(
$args
[
'email'
])
&&
!
empty
(
$args
[
'email'
]))
{
$to_email
=
$args
[
'email'
];
}
else
{
return
;
}
...
...
Please
register
or
sign in
to post a comment