WPIntell

Source evidence

Notification emails trigger spam filters

New Post Notification · support · 2015-07-17T08:01:00+00:00

complaintsentiment
highseverity
0.97relevance
0replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 34 rows with source links

17.6% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
ParHasard unresolved
Hi, I use this plugin to send notification emails to the employees of our company. I received complains about not receiving those emails. After some research, I found out that they triggered spamfilters resulting in automatic deletion. Rule breakdown below pts rule name description —- ———————- ————————————————– 0.00 HTML_OBFUSCATE_10_20 BODY: Message is 10% to 20% HTML obfuscation 0.00 MIME_HTML_ONLY BODY: Message only has text/html MIME parts 0.00 HTML_MESSAGE BODY: HTML included in message 1.05 HTML_MIME_NO_HTML_TAG HTML-only message, but there is no HTML tag 2.70 HTML_OBFUSCATE_10_20_2 Message is 10% to 20% HTML obfuscation I altered the ‘npn_generate_mail_content’ funtion in the npn_plugin.php file like this: function npn_generate_mail_content($postobject,$postcontent,$postthumb,$userid){ $userdata = get_userdata($userid); $authordata = get_userdata($postobject->post_author); $mailcontent = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'.PHP_EOL; $mailcontent .= '<html xmlns="http://www.w3.org/1999/xhtml">'.PHP_EOL; $mailcontent .= '<head>'.PHP_EOL; $mailcontent .= ' <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'.PHP_EOL; $mailcontent .= ' <meta http-equiv="X-UA-Compatible" content="IE=edge" /> '.PHP_EOL; $mailcontent .= ' <meta name="viewport" content="width=device-width, initial-scale=1.0" />'.PHP_EOL; $mailcontent .= ' <title>'.$postobject->post_title.'</title>'.PHP_EOL; $mailcontent .= '</head>'.PHP_EOL; $mailcontent .= '<body style="font-size: 12px; font-family: Arial;">'.PHP_EOL; $mailcontent .= ' <p>'.__('Hello','npn_plugin').' '.$userdata->first_name.',</p>'.PHP_EOL; $mailcontent .= ' <p>'.$authordata->first_name.' '.__('published a new post','npn_plugin').' '.__('at','npn_plugin').' '.get_option('blogname').':</p>'.PHP_EOL; $mailcontent .= ' <h2 style="font-size: 18px;"><a href="'.$postobject->guid.'&refferer=mailnotify&uid='.$userid.'">'.$postobject->post_title.'</a></h2>'.PHP_EOL; $mailcontent .= ' <p>'.implode(' ', array_slice(explode(' ', $postcontent), 0, 40)).' ...</p>'.PHP_EOL; $mailcontent .= ' <p style="font-size: 10px;">'.__('You can deactivate the subscription in your','npn_plugin').' <a href="'.get_bloginfo('wpurl').'/wp-admin/profile.php">'.__('Profile','npn_plugin').'</a></p>'.PHP_EOL; $mailcontent .= '</body>'.PHP_EOL; $mailcontent .= '</html>'.PHP_EOL; return $mailcontent; } Haven’t tested it yet, but I am confident that it solves this problem. Removed the part about categories also https://wordpress.org/plugins/new-post-notification/

Comments

0 shown

No comments were stored for this source.