[Vtigercrm-developers] SMTP not working
Manuel
ptdesigner at gmail.com
Thu Apr 6 18:45:48 GMT 2017
Things like this could be proposed, but I guess vt team will never accept this kind of changes.
Best Regards.
Manuel
> No dia 06/04/2017, às 18:47, Holbok István <holbok at gmail.com> escreveu:
>
> 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: public $CharSet = 'UTF-8';
> I highlighted it with red.
> class PHPMailer
> {
> /**
> * The PHPMailer Version number.
> * @var string
> */
> public $Version = '5.2.22';
>
> /**
> * Email priority.
> * Options: null (default), 1 = High, 3 = Normal, 5 = low.
> * When null, the header is not set at all.
> * @var integer
> */
> public $Priority = null;
>
> /**
> * The character set of the message.
> * @var string
> */
> public $CharSet = 'iso-8859-1';
> The vtiger uses other settings also, but the utf-8 is the main.
>
> 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.
> The last version of the mailer classes can be downloaded from here: https://github.com/PHPMailer/PHPMailer <https://github.com/PHPMailer/PHPMailer>
>
> And here is the test code of the SMTP connection: https://github.com/PHPMailer/PHPMailer/blob/master/examples/smtp.phps <https://github.com/PHPMailer/PHPMailer/blob/master/examples/smtp.phps>
> Inserting this piece of the code, setting credentials inline, and turning on the SMTP debug mode, you will able to see what is happening.
>
> 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 :-(
> Sometimes it is simple like a stone.
>
> Regards:
> Istvan
>
> 2017.04.06. 10:32 keltezéssel, iko írta:
>> 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: http://vtiger-crm.2324883.n4.nabble.com/SMTP-not-working-tp20617p20624.html <http://vtiger-crm.2324883.n4.nabble.com/SMTP-not-working-tp20617p20624.html>
>> Sent from the vtigercrm-developers mailing list archive at Nabble.com.
>> _______________________________________________
>> http://www.vtiger.com/ <http://www.vtiger.com/>
>>
>
>
> _______________________________________________
> http://www.vtiger.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20170406/503285f5/attachment.html>
More information about the vtigercrm-developers
mailing list