Dear All,
Just want to share a bug fix for UTF8 Email title for "tell a friend" and "send announment module". This should work for all pligg version.
recommend.php(Tell a friend function)
Add the following code:
Before change(recommend.php):
Code:
if($cansend >= 10){
$addresses = explode(", ", sanitize($_POST['email_address'], 3));
mailer_start();
After change(recommend.php):
Code:
if($cansend >= 10){
$addresses = explode(", ", sanitize($_POST['email_address'], 3));
//Add the following line
$subject = "=?UTF-8?B?".base64_encode($subject)."?=";
mailer_start();
./modules/send_announcement/templates/sendannouncement.tpl (Send announcement module)
Add the following code:
Before(sendannouncement.tpl):
Code:
function announcement()
{
global $db;
$email = $db->get_col('SELECT user_email FROM ' . table_users . ';');
if ($email)
{..........
After(sendannouncement.tpl):
Code:
function announcement()
{
global $db;
$email = $db->get_col('SELECT user_email FROM ' . table_users . ';');
\\ Add the following line
$subject = "=?UTF-8?B?".base64_encode($subject)."?=";
if ($email)
{.............
Wish it can help you, and please add such code on next pligg release.