1
I’ve found the welcome message that the registered users receive (with the activation link) is inside the language\greek\mail_template\.
Inside the file register.tpl there is a welcome message in greek. In order to display the message in greek, I edited the register.php file by adding the:
$xoopsMailer->addHeaders('Content-Type: text/html; charset=ISO-8859-7');
Inside this if statement
if ($xoopsConfigUser['activation_type'] == 0) {
$xoopsMailer =& getMailer();
$xoopsMailer->addHeaders('Content-Type: text/html; charset=ISO-8859-7');
$xoopsMailer->useMail();
$xoopsMailer->setTemplate('register.tpl');
$xoopsMailer->assign('SITENAME', $xoopsConfig['sitename']);
$xoopsMailer->assign('ADMINMAIL', $xoopsConfig['adminmail']);
$xoopsMailer->assign('SITEURL', XOOPS_URL."/");
$xoopsMailer->setToUsers(new XoopsUser($newid));
$xoopsMailer->setFromEmail($xoopsConfig['adminmail']);
$xoopsMailer->setFromName($xoopsConfig['sitename']);
$xoopsMailer->setSubject(sprintf(_US_USERKEYFOR, $uname));
if ( !$xoopsMailer->send() ) {
echo _US_YOURREGMAILNG;
} else {
echo _US_YOURREGISTERED;
}
Everything worked fine expect the subject of the email…this is still not readable!
Any ideas how can manipulate the encoding of the subject?