|
@@ -169,26 +169,26 @@ |
|
|
block discarded – undo |
|
169
|
169
|
} |
|
170
|
170
|
} |
|
171
|
171
|
|
|
172
|
|
- $site = URLDecode::getSite(); |
|
|
172
|
+ $site = URLDecode::getSite(); |
|
173
|
173
|
|
|
174
|
|
- if ($site == 'blog') { |
|
175
|
|
- $subject = "New Comment on Jacob Emerick's Blog"; |
|
176
|
|
- $message = "Hello!\nThere has been a new comment on the post '{$this->page_title}' at Jacob Emerick's Blog. You have chosen to be notified of it - please reply to [email protected] if you would like to be removed from these notifications.\n\nOn " . date('F j, Y g:i a') . ", " . Request::getPost('name') . " commented...\n" . Request::getPost('comment') . "\n\nVisit {$this->full_path}#comments to see and reply to all the comments on this post.\nThank you!"; |
|
177
|
|
- } else if ($site == 'waterfalls') { |
|
178
|
|
- $subject = "New Comment on Waterfalls of the Keweenaw"; |
|
179
|
|
- $message = "Hello!\nThere has been a new comment on the page '{$this->page_title}' at Waterfalls of the Keweenaw. You have chosen to be notified of it - please reply to [email protected] if you would like to be removed from these notifications.\n\nOn " . date('F j, Y g:i a') . ", " . Request::getPost('name') . " commented...\n" . Request::getPost('comment') . "\n\nVisit {$this->full_path}#comments to see and reply to all the comments on this post.\nThank you!"; |
|
180
|
|
- } |
|
|
174
|
+ if ($site == 'blog') { |
|
|
175
|
+ $subject = "New Comment on Jacob Emerick's Blog"; |
|
|
176
|
+ $message = "Hello!\nThere has been a new comment on the post '{$this->page_title}' at Jacob Emerick's Blog. You have chosen to be notified of it - please reply to [email protected] if you would like to be removed from these notifications.\n\nOn " . date('F j, Y g:i a') . ", " . Request::getPost('name') . " commented...\n" . Request::getPost('comment') . "\n\nVisit {$this->full_path}#comments to see and reply to all the comments on this post.\nThank you!"; |
|
|
177
|
+ } else if ($site == 'waterfalls') { |
|
|
178
|
+ $subject = "New Comment on Waterfalls of the Keweenaw"; |
|
|
179
|
+ $message = "Hello!\nThere has been a new comment on the page '{$this->page_title}' at Waterfalls of the Keweenaw. You have chosen to be notified of it - please reply to [email protected] if you would like to be removed from these notifications.\n\nOn " . date('F j, Y g:i a') . ", " . Request::getPost('name') . " commented...\n" . Request::getPost('comment') . "\n\nVisit {$this->full_path}#comments to see and reply to all the comments on this post.\nThank you!"; |
|
|
180
|
+ } |
|
181
|
181
|
|
|
182
|
|
- global $container; |
|
|
182
|
+ global $container; |
|
183
|
183
|
|
|
184
|
184
|
foreach($email_recipient_array as $email_recipient) |
|
185
|
185
|
{ |
|
186
|
|
- $sent = $container['mail'] |
|
187
|
|
- ->addTo($email_recipient['email'], $email_recipient['name']) |
|
188
|
|
- ->addBCC($container['config']->admin_email) |
|
189
|
|
- ->setSubject($subject) |
|
190
|
|
- ->setMessage($message) |
|
191
|
|
- ->send(); |
|
|
186
|
+ $sent = $container['mail'] |
|
|
187
|
+ ->addTo($email_recipient['email'], $email_recipient['name']) |
|
|
188
|
+ ->addBCC($container['config']->admin_email) |
|
|
189
|
+ ->setSubject($subject) |
|
|
190
|
+ ->setMessage($message) |
|
|
191
|
+ ->send(); |
|
192
|
192
|
} |
|
193
|
193
|
} |
|
194
|
194
|
|