Fixed in v1.5
This is not an official fix and may not work for you. This is a general purpose fix for all HTML emails sent through Vb and has been tested on vB v3.6.2 with PHP 5xx
1. Go to the Plugin Manager
2. Search down to Product: Weekly Stats
3. Click: replace Content-Type with text/html in headers
4. Replace contents with:
PHP Code:
if (stristr($message,'<HTML>')){
$headers = str_replace('text/plain','text/html',$headers);
}
Explanation
This patch searches the message body for <HTML>. If it finds it it then replaces the content type with the content type for HTML emails. It's not bullet proof and can be fooled but for most people it should work fine.
If you want a bullet proof solution specifically for Weekly Stats the following should work:
PHP Code:
if (stristr($subject,'SUBJECT OF YOUR WEEKLY STATS EMAIL HERE')){
$headers = str_replace('text/plain','text/html',$headers);
}
This can be made more efficient using the stripos() function to return as soon as the fist occurrence of the string in etiher case is found.
I've also modded the original install with the primary general purpose fix above for those who want it.
This is not endorsed nor approved by the original authors but here for those who may need it. All the other usual disclaimers apply.
~ Steph
forum.treonauts.com