<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body smarttemplateinserted="true" bgcolor="#FFFFFF" text="#000000">
<p>Iko,</p>
<p>You will find the answers at the link of PHP Mailer
troubleshooting on GitHub:<br>
</p>
<p><a class="moz-txt-link-freetext" href="https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting">https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting</a></p>
<p>Even the DNS issue is listed there. Also you will find the proper
port settings examples, both of tls and ssl.<br>
The vtiger requires SMTP host in the format:
ssl://smtp.example.com:465 or tls://smt.example.com:587 and the
PHP Mailer will it parse properly.</p>
<p>The DNS issue can be tested by the <a class="moz-txt-link-freetext" href="https://mxtoolbox.com/">https://mxtoolbox.com/</a> <br>
</p>
<p>And this is the very important part of the troubleshooting guide
from the GitHub<br>
</p>
<p>If you check all circumstances and it's still not working!<br>
<br>
<i>If any of the above checks fail, PHPMailer will not work
either, and usually there's nothing that PHPMailer can do about
it. <font color="#cc0000"><b>So go fix your network, then try
again.</b></font> If you are not in control of your own
firewall or DNS, you probably need to raise a support ticket
with your ISP to fix this (it's very common for them to block or
divert port 25 outbound). <font color="#cc0000"><b>If they
won't fix it, you need to replace your ISP</b></font>. PS:
BlueHost doesn't support smtp.gmail.com, they want you to use
their smtp server. The work around would be to use email
associated with BlueHost and their host address Or send using
mail() function in this case.</i><br>
</p>
<p>Note: because of these reasons I had just moved one of my clients
from GoDaddy to a virtual private server hosted at InMotion
Hosting.<br>
</p>
<div class="moz-signature">Kindest regards:<br>
Istvan<br>
<br>
</div>
<div class="moz-cite-prefix">2017.04.07. 10:03 keltezéssel,
Christophe Humbert írta:<br>
</div>
<blockquote class=" cite"
id="mid_CABffS_yv1Ebz5s06_6Oo20PrZrwO3iwn694YcbiFUGZVm42LgQ_mail_gmail_com"
cite="mid:CABffS=yv1Ebz5s06_6Oo20PrZrwO3iwn694YcbiFUGZVm42LgQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hello<br>
<br>
You have a DNS issue <b>No route to host</b>
<div class="gmail_extra"><br clear="all">
<div>
<div class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>Kind Regards<br>
</div>
<div>Chris<br>
</div>
<div><br>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">On Fri, Apr 7, 2017 at 9:26 AM, iko <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:irina_k6@hotmail.com" target="_blank">irina_k6@hotmail.com</a>></span>
wrote:<br>
<blockquote id="Cite_5122987" class="gmail_quote cite"
style="margin:0 0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">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): <a moz-do-not-send="true"
href="tel:2017-04-07" value="+35220170407">2017-04-07</a><br>
07:30:32 Connection: opening to <a moz-do-not-send="true"
href="http://smtp.office365.com:25" rel="noreferrer"
target="_blank">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
moz-do-not-send="true"
href="http://smtp.office365.com:25" rel="noreferrer"
target="_blank">smtp.office365.com:25</a> (No route<br>
to host) [/removed/modules/Emails/<wbr>class.smtp.php line
<a moz-do-not-send="true" href="tel:294%5D%202017-04-07"
value="+35229420170407">294] 2017-04-07</a><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 moz-do-not-send="true"
href="https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting"
rel="noreferrer" target="_blank">https://github.com/PHPMailer/<wbr>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 moz-do-not-send="true"
href="http://vtiger-crm.2324883.n4.nabble.com/SMTP-not-working-tp20617p20627.html"
rel="noreferrer" target="_blank">http://vtiger-crm.2324883.n4.<wbr>nabble.com/SMTP-not-working-<wbr>tp20617p20627.html</a><br>
<div class="HOEnZb">
<div class="h5">Sent from the vtigercrm-developers
mailing list archive at Nabble.com.<br>
<br>
______________________________<wbr>_________________<br>
<a moz-do-not-send="true"
href="http://www.vtiger.com/" rel="noreferrer"
target="_blank">http://www.vtiger.com/</a></div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
<a class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a></pre>
</blockquote>
<br>
<br>
</body>
</html>