<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarai.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Failure when trying to connect to SMTP mail server</title><link>https://sugarclub.sugarai.com/dev-club/f/questions-answers/482/failure-when-trying-to-connect-to-smtp-mail-server</link><description>Hello everyone ! I have a kind of huge situation here... I would like to configure my outbound SMTP mail server. i&amp;#39;m using Gmail for it. So, i use &amp;quot;smtp.gmail.com&amp;quot; in SMTP server, i chose 587 as the smtp port, and i tried both SSL and TLS. My gmail address</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Failure when trying to connect to SMTP mail server</title><link>https://sugarclub.sugarai.com/thread/17280?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2015 13:31:00 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:02ae8b03-bd9d-4a58-9cfb-1286fda70094</guid><dc:creator>Shijin Krishna</dc:creator><description>&lt;span&gt;You are always welecome:)&lt;/span&gt;&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure when trying to connect to SMTP mail server</title><link>https://sugarclub.sugarai.com/thread/17278?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2015 13:10:00 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:5ad3c36f-8aef-4633-8712-1c90f09f033b</guid><dc:creator>Gaelle Fernandez</dc:creator><description>&lt;span&gt;Hi @EvilPeri, that could have been a good path to follow, but i&amp;#39;ve resolved this problem. now i&amp;#39;m focused on inbound emails and imap. By the way, i&amp;#39;m OnSite, no special hosting provider (vm in my network)&lt;/span&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure when trying to connect to SMTP mail server</title><link>https://sugarclub.sugarai.com/thread/17279?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2015 13:07:00 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:c206f732-bdf8-49f1-a63a-8b83214c3222</guid><dc:creator>Gaelle Fernandez</dc:creator><description>&lt;span&gt;Okay, at least, the test email is working&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;a href="https://community.sugarcrm.com/#"&gt;Dan Kallish&lt;/a&gt;&lt;span&gt;&amp;nbsp;helped me by giving me advices for logs. (traditionnally, i just open the sugarcrm.log and try to find something).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;And &lt;/span&gt;&lt;strong&gt;&lt;/strong&gt;&lt;a href="https://community.sugarcrm.com/#"&gt;Jason Thiede&lt;/a&gt;&lt;span&gt;&amp;nbsp;was totally right : we have to allow access to the google account, but we&lt;/span&gt;&lt;strong&gt; DO &lt;/strong&gt;&lt;span&gt;need &lt;/span&gt;&lt;strong&gt;allowing less secure apps to access&lt;/strong&gt;&lt;span&gt;. My first try was doing it in chrome but my sugar was open on Firefox, therefore it did not work. But then, i allowed it via firefox and it does work now. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Hopefully, i&amp;#39;m using gmail only for tests, because i don&amp;#39;t know how we could allow access from every user&amp;#39;s computer on chrome/ff/ie...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Thanks to&amp;nbsp;&lt;/span&gt;&lt;a href="https://community.sugarcrm.com/#"&gt;Shijin Krishna&lt;/a&gt;&lt;span&gt;&amp;nbsp;to, because well, sometimes we need some reminders.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Problem Solved, and good luck with SMTP and Gmail !&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;BUT&lt;/strong&gt;&lt;span&gt; i still have another problem with inbound emails. I&amp;#39;ll open a new thread.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Thanks a lot gentlemen !&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure when trying to connect to SMTP mail server</title><link>https://sugarclub.sugarai.com/thread/17277?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2015 12:36:00 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:14ad2549-4ac2-4516-847c-72eac2721a34</guid><dc:creator>EvilPeri EvilPeri</dc:creator><description>&lt;span&gt;Hi Gaelle&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Try using SSL port 993, if this still doesn&amp;#39;t work could you confirm if your hosted onsite or via a hosting provider in the cloud i had a similar case where in there were two problems the centos box preventing me from connecting to gmail (non php issues)&lt;/span&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure when trying to connect to SMTP mail server</title><link>https://sugarclub.sugarai.com/thread/17276?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2015 12:03:00 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:729260d5-7404-4bd4-ba34-593b6dea8061</guid><dc:creator>Gaelle Fernandez</dc:creator><description>&lt;span&gt;Hi Jason,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;I&amp;#39;ve already allowed less secure apps to access my gmail account, but it did nothing. I now tried your first link too, but there was no change at all ...&lt;/span&gt;&lt;br /&gt;&lt;span&gt;I re-checked my gmail credentials, and they are still good...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;I&amp;#39;ll try again to find some gmail knowledge base.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Thanks a lot :)&lt;/span&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure when trying to connect to SMTP mail server</title><link>https://sugarclub.sugarai.com/thread/17274?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2015 11:59:00 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:e3caf4d8-eaba-4af6-a9a7-5d520f15a98d</guid><dc:creator>Gaelle Fernandez</dc:creator><description>&lt;span&gt;Thanks Dan, it is a trick we don&amp;#39;t have knowledge to.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Here are the generated logs :&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;SMTP -&amp;gt; ERROR: Failed to connect to server. Code: 0 Reply:&amp;nbsp;&lt;br /&gt;MailerException - @(SmtpMailer.php:166 [6]) - Failed to connect to outbound SMTP Mail Server&lt;br /&gt;MailerException - @(SmtpMailer.php:166 [6]) - Failed to connect to outbound SMTP Mail Server&lt;/pre&gt;&lt;br /&gt;&lt;span&gt;So, i&amp;#39;m assuming that Mailer can&amp;#39;t access to the smtp server from google ? or does it ?&lt;/span&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure when trying to connect to SMTP mail server</title><link>https://sugarclub.sugarai.com/thread/17272?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2015 11:55:00 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:2568d6f3-83df-40b1-93b3-0cbe645e2406</guid><dc:creator>Gaelle Fernandez</dc:creator><description>&lt;span&gt;Well, at the end of it, i would like to use smtp to get inbound email and generate Cases from them. But i would like my team to send email as well.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;But in fact, i have this error when sending the test email in EmailMan config.(Admin,&amp;gt;Email parameters&amp;gt;SMTP configuration)&lt;/span&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure when trying to connect to SMTP mail server</title><link>https://sugarclub.sugarai.com/thread/17275?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2015 23:54:00 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:857cc973-bbe0-4353-bab8-9f6cd2adf392</guid><dc:creator>Jason Thiede</dc:creator><description>&lt;span&gt;Hi Gaelle,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;You may look into &lt;/span&gt;&lt;a href="https://accounts.google.com/DisplayUnlockCaptcha" rel="nofollow" target="_blank"&gt;Allow access to your Google account&lt;/a&gt;&lt;span&gt; and &amp;nbsp;&lt;/span&gt;&lt;a href="https://support.google.com/accounts/answer/6010255?hl=en" rel="nofollow" target="_blank"&gt;Allowing less secure apps to access your account&lt;/a&gt;&lt;span&gt;. Definitely give the first link a try by following it, logging into the Google account you are connecting to Sugar, and clicking Continue (more info at &lt;/span&gt;&lt;a href="https://accounts.google.com/DisplayUnlockCaptcha" rel="nofollow" target="_blank"&gt;https://accounts.google.com/DisplayUnlockCaptcha&lt;/a&gt;&lt;span&gt;). I don&amp;#39;t recall if the second link (allowing less secure apps...) was required with Sugar or not, but it is best to avoid this option. It might server more as a troubleshooting step.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Good luck!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Jason&lt;/span&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure when trying to connect to SMTP mail server</title><link>https://sugarclub.sugarai.com/thread/17273?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2015 22:54:00 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:894b43c7-0cf4-4fd9-a10e-13b4e208f75f</guid><dc:creator>Dan Kallish</dc:creator><description>&lt;span&gt;Hello,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;In Admin &amp;gt; System Settings, please update the Log Level to &amp;#39;error&amp;#39;. &amp;nbsp;In Sugar 7.5.x we&amp;#39;re capturing SMTP related errors at this level rather than the FATAL level.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;After making this change, click the Save button then reopen Admin &amp;gt; System Settings. &amp;nbsp;Scroll to the bottom of the page and click &amp;#39;View Log&amp;#39;. &amp;nbsp;Click the &amp;#39;Mark Point&amp;#39; button. &amp;nbsp;Retry the &amp;#39;Send Test&amp;#39; option in Admin &amp;gt; Email Settings.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;When the email fails, click the &amp;#39;Refresh from Mark&amp;#39; button on the &amp;#39;Configurator&amp;#39; tab. &amp;nbsp;You should now have additional information regarding why the email failed to send.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Typically with Google this occurs because of two-factor authentication. &amp;nbsp;There will likely be a link to a Google Knowledge Base article that explains the root cause and work-arounds for the issue you&amp;#39;re encountering.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Dan Kallish&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Advanced Support Engineer&lt;/span&gt;&lt;br /&gt;&lt;span&gt;SUGARCRM&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Learning Resources: &lt;/span&gt;&lt;a href="http://support.sugarcrm.com" rel="nofollow" target="_blank"&gt;http://support.sugarcrm.com&lt;/a&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href="http://university.sugarcrm.com" rel="nofollow" target="_blank"&gt;http://university.sugarcrm.com&lt;/a&gt;&lt;span&gt; | &lt;/span&gt;&lt;a href="http://community.sugarcrm.com" rel="nofollow" target="_blank"&gt;http://community.sugarcrm.com&lt;/a&gt;&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failure when trying to connect to SMTP mail server</title><link>https://sugarclub.sugarai.com/thread/17271?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2015 21:27:00 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:e8afb1da-eaa5-4cfd-a9fb-b91f897fc0b3</guid><dc:creator>Shijin Krishna</dc:creator><description>&lt;span&gt;First off all IMAP is not required to configure outbound email.Its required for inbound emails.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Are you sure the authentication details you are giving is correct?&lt;/span&gt;&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>