OK I made it... the problem was that I defined some headers after
"X-Mailer: Content Manager - PHP/".phpversion()
so I just passed it before.
The solution to get uft-8 notification emails in jot 1.1.2 (I could not make email notifications work in jot 1.1.4) :
$headers .='Content-Type: text/plain; charset="utf-8"'."\n";
$headers .='Content-Transfer-Encoding: 8bit';
mail($user["email"], $this->config["subject"]["subscribe"], $message, $headers, "From: ".$modx->config['emailsender']."\r\n"."X-Mailer: Content Manager - PHP/".phpversion(),$headers);
to add after :
if ($this->config["user"]["id"] != $subscriptions[$i]["userid"] ) {
$user = $this->getUserInfo($subscriptions[$i]["userid"]);
$tpl = new CChunkie($this->templates["notify"]);
$tpl->AddVar('jot',$this->config);
$tpl->AddVar('comment',$comment);
$tpl->AddVar('siteurl',"http://".$_SERVER["SERVER_NAME"]);
$tpl->AddVar('recipient',$user);
$message = $tpl->Render();
and after :
foreach ($moderators as $moderator){
$user = $modx->getWebUserInfo($moderator);
$tpl = new CChunkie($this->templates["notifymoderator"]);
$tpl->AddVar('jot',$this->config);
$tpl->AddVar('comment',$comment);
$tpl->AddVar('siteurl',"http://".$_SERVER["SERVER_NAME"]);
$tpl->AddVar('recipient',$user);
$message = $tpl->Render();