jakimś wystarczyło dać
$CharSet = 'UTF-8';
$mail_tpl = new Smarty(); $conf = conf::getInstance(); $phpmailer = new PHPMailer(true); $phpmailer->IsSMTP(); $phpmailer->Mailer = "smtp"; $phpmailer->SMTPDebug = 1; $phpmailer->SMTPAuth = true; // enable SMTP authentication $phpmailer->Host = $conf->get('mail_host'); $phpmailer->Port = $conf->get('mail_port'); $phpmailer->Username = $conf->get('mail_username'); $phpmailer->Password = $conf->get('mail_pass'); $phpmailer->AddReplyTo($conf->get('mail_username'), 'Administrator'); $phpmailer->SetFrom($conf->get('mail_username'), 'Administrator'); $phpmailer->Subject = 'Pytanie'; $phpmailer->MsgHTML($mail_tpl->fetch('templates/mail_ask.tpl')); $phpmailer->AddAddress($conf->get('mail_username')); $phpmailer->Send();
w nagłówku strony jest
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
szablon maila to
Polskie znaki mam na gmailu.
Krzaki są na wp.pl, roundcube.
Co może być tego przyczyną i jak rozwiązać problem ?