<html><head></head><body>It doesn't look like a code problem, more like a configuration problem. Your host set correctly? And port 25 is correct? You sure these settings ever worked before? <br><br><div class="gmail_quote">On April 7, 2017 3:26:56 PM GMT+08:00, iko <irina_k6@hotmail.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">Thank you, Istvan for your help. I had right files and UTF-8 was in place.<br />But no luck getting smtp to work... <br /><br />Here is what I get in debug message:<br /><br />2017-04-07 07:30:32 Invalid address: (addAnAddress Reply-To): 2017-04-07<br />07:30:32 Connection: opening to <a href="smtp.office365.com:25">smtp.office365.com:25</a>, timeout=300,<br />options=array ( ) 2017-04-07 07:30:32 Connection failed. Error #2:<br />stream_socket_client(): unable to connect to <a href="smtp.office365.com:25">smtp.office365.com:25</a> (No route<br />to host) [/removed/modules/Emails/class.smtp.php line 294] 2017-04-07<br />07:30:32 SMTP ERROR: Failed to connect to server: No route to host (65)<br />2017-04-07 07:30:32 SMTP connect() failed.<br /><a href="https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting">https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting</a> <br /><br />And port should be 587. It is correct in vtiger_systems and I tested with<br />putting it manually in class.phpmailer.php. But debug message remains the<br />same with port 25.<br /><br />Regarding the smtp.phps code. Where should I insert it? I'm sorry for my<br />being inexperienced.<br /><br /><br /><br />--<br />View this message in context: <a href="http://vtiger-crm.2324883.n4.nabble.com/SMTP-not-working-tp20617p20627.html">http://vtiger-crm.2324883.n4.nabble.com/SMTP-not-working-tp20617p20627.html</a><br />Sent from the vtigercrm-developers mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br /><br /><hr /><br /><a href="http://www.vtiger.com/">http://www.vtiger.com/</a></pre></blockquote></div><br>
-- <br>
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.</body></html>