Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
extensions
cc.tadpole.petitionemail
Commits
d2c06dee
Commit
d2c06dee
authored
Oct 29, 2014
by
Jamie McClelland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding some logging to track who received an email.
parent
4728096c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
petitionemail.php
petitionemail.php
+6
-1
No files found.
petitionemail.php
View file @
d2c06dee
...
...
@@ -458,7 +458,8 @@ function petitionemail_process_signature($activity_id) {
$domain
=
civicrm_api3
(
"Domain"
,
"get"
,
array
());
if
(
$domain
[
'is_error'
]
!=
0
||
!
is_array
(
$domain
[
'values'
]))
{
// Can't send email without a from address.
$msg
=
ts
(
"Failed to send petition email because from address not sent."
);
$msg
=
"petition_email: Failed to send petition email because from
address not sent."
;
CRM_Core_Error
::
debug_log_message
(
$msg
);
return
;
}
...
...
@@ -489,6 +490,10 @@ function petitionemail_process_signature($activity_id) {
$email_params
[
'toName'
]
=
$recipient
[
'name'
];
$email_params
[
'toEmail'
]
=
$recipient
[
'email'
];
$to
=
$email_params
[
'toName'
]
.
' '
.
$email_params
[
'toEmail'
];
$msg
=
"petition_email: '
$contact_id
' sending petition to '
$to
'"
;
CRM_Core_Error
::
debug_log_message
(
$msg
);
$success
=
CRM_Utils_Mail
::
send
(
$email_params
);
if
(
$success
==
1
)
{
...
...
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