<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body smarttemplateinserted="true" bgcolor="#FFFFFF" text="#000000">
    <p>In the file class.phpmailer.php downloaded from the GitHub Master
      about the line 48 you will find the charset defintion. It is by
      default is iso, but we need utf-8. In the vtiger original this
      definition is:   <font color="#cc0000">public $CharSet  = 'UTF-8</font>';<br>
    </p>
    <p>I highlighted it with red.<br>
    </p>
    <p>class PHPMailer<br>
      {<br>
          /**<br>
           * The PHPMailer Version number.<br>
           * @var string<br>
           */<br>
          public $Version = '5.2.22';<br>
      <br>
          /**<br>
           * Email priority.<br>
           * Options: null (default), 1 = High, 3 = Normal, 5 = low.<br>
           * When null, the header is not set at all.<br>
           * @var integer<br>
           */<br>
          public $Priority = null;<br>
      <br>
          /**<br>
           * The character set of the message.<br>
           * @var string<br>
           */<br>
          <font color="#cc0000">public $CharSet = 'iso-8859-1'</font>;<br>
    </p>
    <div class="moz-signature">The vtiger uses other settings also, but
      the utf-8 is the main.<br>
      <br>
      In any vtiger 6.x system replacing the old mailer class files,
      including the require smtp class at the top will work the change.
      I also uses it as Alan in all of my systems.<br>
      The last version of the mailer classes can be downloaded from
      here: <a class="moz-txt-link-freetext" href="https://github.com/PHPMailer/PHPMailer">https://github.com/PHPMailer/PHPMailer</a><br>
      <br>
      And here is the test code of the SMTP connection:
      <a class="moz-txt-link-freetext" href="https://github.com/PHPMailer/PHPMailer/blob/master/examples/smtp.phps">https://github.com/PHPMailer/PHPMailer/blob/master/examples/smtp.phps</a><br>
      Inserting this piece of the code, setting credentials inline, and
      turning on the SMTP debug mode, you will able to see what is
      happening. <br>
      <br>
      Once I had run into trouble with a vtiger smtp connection and the
      debug showed the real why: there was a white space added to the
      password. I spent 3 hours to debug it :-(<br>
      Sometimes it is simple like a stone.<br>
      <br>
      Regards:<br>
      Istvan<br>
      <br>
    </div>
    <div class="moz-cite-prefix">2017.04.06. 10:32 keltezéssel, iko
      írta:<br>
    </div>
    <blockquote class=" cite"
      id="mid_1491467543970_20624_post_n4_nabble_com"
      cite="mid:1491467543970-20624.post@n4.nabble.com" type="cite">
      <pre wrap="">I have tried to put the to new files in and setting
require_once('modules/Emails/class.smtp.php'); in the new
class.phpmailer.php file. But had no success in getting smtp to work in VT
6.5. 

Istvan, what should be done to 'set the necessary settings, like utf-8
comparing with the vtiger supplied class.{smtp,phpmailer}.php' ?

And thank you for your help, it is much appreciated



--
View this message in context: <a class="moz-txt-link-freetext" href="http://vtiger-crm.2324883.n4.nabble.com/SMTP-not-working-tp20617p20624.html">http://vtiger-crm.2324883.n4.nabble.com/SMTP-not-working-tp20617p20624.html</a>
Sent from the vtigercrm-developers mailing list archive at Nabble.com.
_______________________________________________
<a class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a>

</pre>
    </blockquote>
    <br>
    <br>
  </body>
</html>