@@ -174,7 +174,7 @@ public function sendEmail($params)
174
174
$ thresholdValue = $ notification ['value ' ];
175
175
$ thresholdComparison = $ notification ['comparison ' ];
176
176
$ scalarValue = $ scalar ['value ' ];
177
- $ subject = 'Threshold Alert: ' .$ producerName .': ' .$ trendName. ' value ' . $ scalarValue . ' ' . $ thresholdComparison . ' ' . $ thresholdValue ;
177
+ $ subject = 'Threshold Alert: ' .$ producerName .': ' .$ trendName ;
178
178
179
179
$ body = 'Hello,<br/><br/>This email was sent because a submitted scalar value exceeded a threshold that you specified.<br/><br/> ' ;
180
180
$ body .= '<b>Community:</b> <a href=" ' .$ fullUrl .'/community/ ' .$ producerDao ->getCommunityId (
@@ -185,17 +185,17 @@ public function sendEmail($params)
185
185
).'"> ' .htmlspecialchars ($ trendDao ->getDisplayName (), ENT_QUOTES , 'UTF-8 ' ).'</a><br/> ' ;
186
186
$ body .= 'Visit the above Trend link to change or disable notifications.<br/> ' ;
187
187
$ body .= '<b>Value:</b> ' .htmlspecialchars ($ scalarValue , ENT_QUOTES , 'UTF-8 ' ).'<br/> ' ;
188
- $ body .= '<b>Threshold:</b> ' .htmlspecialchars ($ thresholdComparison , ENT_QUOTES , 'UTF-8 ' ).' ' .htmlspecialchars ($ thresholdValue , ENT_QUOTES , 'UTF-8 ' ).'<br/> ' ;
188
+ $ body .= '<b>Threshold:</b> ' .htmlspecialchars ($ thresholdComparison , ENT_QUOTES , 'UTF-8 ' ).' ' .htmlspecialchars ($ thresholdValue , ENT_QUOTES , 'UTF-8 ' ).'<br/> ' . PHP_EOL ;
189
189
190
190
// Add gmail "View Action".
191
191
$ trendTrackerUrl = $ fullUrl .'/ ' .$ this ->moduleName .'/trend/view?trendId= ' .$ trendDao ->getKey ();
192
- $ body .= '<div itemscope itemtype="http://schema.org/EmailMessage"> ' ;
193
- $ body .= ' <div itemprop="potentialAction " itemscope itemtype="http://schema.org/ViewAction"> ' ;
194
- $ body .= ' <link itemprop="target " href=" ' .$ trendTrackerUrl .'"/> ' ;
195
- $ body .= ' <meta itemprop="name" content="View trend plot "/> ' ;
196
- $ body .= ' </div> ' ;
197
- $ body .= ' <meta itemprop="description" content="View the trend plot"/> ' ;
198
- $ body .= '</div> ' ;
192
+ $ body .= '<div itemscope itemtype="http://schema.org/EmailMessage"> ' . PHP_EOL ;
193
+ $ body .= ' <div itemprop="action " itemscope itemtype="http://schema.org/ViewAction"> ' . PHP_EOL ;
194
+ $ body .= ' <link itemprop="url " href=" ' .$ trendTrackerUrl .'"/> ' . PHP_EOL ;
195
+ $ body .= ' <meta itemprop="name" content="View trend"/> ' . PHP_EOL ;
196
+ $ body .= ' </div> ' . PHP_EOL ;
197
+ $ body .= ' <meta itemprop="description" content="View the trend plot"/> ' . PHP_EOL ;
198
+ $ body .= '</div> ' . PHP_EOL ;
199
199
200
200
Zend_Registry::get ('notifier ' )->callback (
201
201
'CALLBACK_CORE_SEND_MAIL_MESSAGE ' ,
0 commit comments