Skip to content

Fix Greek encoding on outgoing mail

Salih Emin edited this page Jun 30, 2020 · 1 revision

Freshly installed vtiger 7.2.0. I face trouble with special characters in Email encoding. Outgoing emails are not encoded in UTF-8 and so any Greek words are like (ΚαλησπέÏ�α σαÏ) and are not displayed correctly:

Fix

Go and edit :

sudo vim vtlib/Vtiger/Mailer.php

and make function __construct() look like:

* Constructor
     function __construct() {
           global $default_charset;
 	   parent::__construct();
 	   $this->initialize();
	   $this->CharSet = $default_charset;
 	}

There is already a merged code that sets phpmailer encoding to the encoding specified in config.inc.php when creating new instance of Vtiger_Mailerand will be available as a fix in the next release