Failure when trying to connect to SMTP mail server

Hello everyone !

I have a kind of huge situation here...

I would like to configure my outbound SMTP mail server. i'm using Gmail for it.
So, i use "smtp.gmail.com" in SMTP server, i chose 587 as the smtp port, and i tried both SSL and TLS.
My gmail address and gmail password are correct.

But yet, when sending the test mail, i got this error message :"Erreur emailing :Failed to connect to outbound SMTP Mail Server"

I've search for the imap in Php5, and i do have IMAP enabled. I don't know what to do, and i'm totally confuse and at a dead end : i'll use the outbound a lot, and i need to receive email too !

I'm kind of in a hurry with a seems-to-be unresolvable mess.

Could you help me please ?

My configuration :
- SugarCRM Professional, Version 7.5.2.1 (Build 1008)
- PHP version 5.3.23
in php info, in "Configure command", i have "--with-imap-ssl", and in Protocol, i have imaps and imap.

Please, please help me !

Thanks a lot for your time !
Parents Reply
  • Okay, at least, the test email is working

    Dan Kallish helped me by giving me advices for logs. (traditionnally, i just open the sugarcrm.log and try to find something).

    And Jason Thiede was totally right : we have to allow access to the google account, but we DO need allowing less secure apps to access. 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.

    Hopefully, i'm using gmail only for tests, because i don't know how we could allow access from every user's computer on chrome/ff/ie...

    Thanks to Shijin Krishna to, because well, sometimes we need some reminders.

    Problem Solved, and good luck with SMTP and Gmail !

    BUT i still have another problem with inbound emails. I'll open a new thread.

    Thanks a lot gentlemen !



Children