@@ -167,26 +167,26 @@ |
||
167 | 167 | } |
168 | 168 | } |
169 | 169 | |
170 | - $site = URLDecode::getSite(); |
|
170 | + $site = URLDecode::getSite(); |
|
171 | 171 | |
172 | - if ($site == 'blog') { |
|
173 | - $subject = "New Comment on Jacob Emerick's Blog"; |
|
174 | - $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!"; |
|
175 | - } else if ($site == 'waterfalls') { |
|
176 | - $subject = "New Comment on Waterfalls of the Keweenaw"; |
|
177 | - $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!"; |
|
178 | - } |
|
172 | + if ($site == 'blog') { |
|
173 | + $subject = "New Comment on Jacob Emerick's Blog"; |
|
174 | + $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!"; |
|
175 | + } else if ($site == 'waterfalls') { |
|
176 | + $subject = "New Comment on Waterfalls of the Keweenaw"; |
|
177 | + $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!"; |
|
178 | + } |
|
179 | 179 | |
180 | - global $container; |
|
180 | + global $container; |
|
181 | 181 | |
182 | 182 | foreach($email_recipient_array as $email_recipient) |
183 | 183 | { |
184 | - $sent = $container['mail'] |
|
185 | - ->addTo($email_recipient['email'], $email_recipient['name']) |
|
186 | - ->addBCC($container['config']->admin_email) |
|
187 | - ->setSubject($subject) |
|
188 | - ->setPlainMessage($message) |
|
189 | - ->send(); |
|
184 | + $sent = $container['mail'] |
|
185 | + ->addTo($email_recipient['email'], $email_recipient['name']) |
|
186 | + ->addBCC($container['config']->admin_email) |
|
187 | + ->setSubject($subject) |
|
188 | + ->setPlainMessage($message) |
|
189 | + ->send(); |
|
190 | 190 | } |
191 | 191 | } |
192 | 192 |