<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Things like this could be proposed, but I guess vt team will never accept this kind of changes.<div class=""><br class=""></div><div class="">Best Regards.</div><div class=""><br class=""></div><div class="">Manuel</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">No dia 06/04/2017, às 18:47, Holbok István <<a href="mailto:holbok@gmail.com" class="">holbok@gmail.com</a>> escreveu:</div><br class="Apple-interchange-newline"><div class="">
  

    <meta http-equiv="content-type" content="text/html; charset=utf-8" class="">
  
  <div smarttemplateinserted="true" bgcolor="#FFFFFF" text="#000000" class=""><p class="">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" class="">public $CharSet  = 'UTF-8</font>';<br class="">
    </p><p class="">I highlighted it with red.<br class="">
    </p><p class="">class PHPMailer<br class="">
      {<br class="">
          /**<br class="">
           * The PHPMailer Version number.<br class="">
           * @var string<br class="">
           */<br class="">
          public $Version = '5.2.22';<br class="">
      <br class="">
          /**<br class="">
           * Email priority.<br class="">
           * Options: null (default), 1 = High, 3 = Normal, 5 = low.<br class="">
           * When null, the header is not set at all.<br class="">
           * @var integer<br class="">
           */<br class="">
          public $Priority = null;<br class="">
      <br class="">
          /**<br class="">
           * The character set of the message.<br class="">
           * @var string<br class="">
           */<br class="">
          <font color="#cc0000" class="">public $CharSet = 'iso-8859-1'</font>;<br class="">
    </p>
    <div class="moz-signature">The vtiger uses other settings also, but
      the utf-8 is the main.<br class="">
      <br class="">
      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 class="">
      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 class="">
      <br class="">
      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 class="">
      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 class="">
      <br class="">
      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 class="">
      Sometimes it is simple like a stone.<br class="">
      <br class="">
      Regards:<br class="">
      Istvan<br class="">
      <br class="">
    </div>
    <div class="moz-cite-prefix">2017.04.06. 10:32 keltezéssel, iko
      írta:<br class="">
    </div>
    <blockquote class=" cite" id="mid_1491467543970_20624_post_n4_nabble_com" cite="mid:1491467543970-20624.post@n4.nabble.com" type="cite">
      <pre wrap="" class="">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 <a href="http://Nabble.com" class="">Nabble.com</a>.
_______________________________________________
<a class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a>

</pre>
    </blockquote>
    <br class="">
    <br class="">
  </div>

_______________________________________________<br class=""><a href="http://www.vtiger.com/" class="">http://www.vtiger.com/</a></div></blockquote></div><br class=""></div></body></html>