Specifically, with an email account associated with a domain is hosted by Bluehost?
I’m still trying to get an answer to this problem because I’m fully committed to SuiteCRM but can not send email from any accounts via GMAIL servers.
I am able to send emails from those exact same accounts via Bluehost’s servers.
Here’s what I’ve tried so far:
Setting up 2-s- tep verification (as a G-Suite Admin and on a user-basis)
- Allowing Less Secure Apps (as a G-Suite Admin and on a user-basis)
- Using several different email accounts via smtp.gmail.com with SSL port 465 and TLS port 587 (none worked)
- Setting up corresponding incoming servers via imap.gmail.com (although I do NOT want SuiteCRM to monitor incoming mail…didn’t work)
- Setting up exact same email accounts via Bluehost server (Works PERFECTLY but I NEED outgoing messages to go through G-Suite)
- Using a gmail (non-G-Suite) email account via smtp.gmail.com, with 2-step disabled, less secure apps enabled (did not work)
- Setting up the ex
act sa
[/ul]me email accounts via G-Suite servers on MS Outlook. (Works PERFECTLY)
What happens:
I get one of 2 outcomes depending on the different conditions I set as mentioned above. Each time it begins with the whole system freezing up for 5-10 minutes while it tries to relay the test message. Pop-up reads"Performing tasks. One Moment Please…"
(1) At times I will eventually get the “SMTP connect() failed” error message, but
(2) At other times I don’t get an error message at all because the system never unfreezes.
The last 2 bullet points lead me to believe the problem is with the interface of SuiteCRM and GMAIL. I’ve tried every solution proposed on every thread that I could find. What has resolved this issues for others is not resolving it for me. What could be different in my case? I’ve read of one other user having a similar issue and abandoning SuiteCRM for lack of a resolution. I can’t do that, as I’m into it too deeply.
So my question is:
Can anyone propose any new solutions, BEYOND allowing less secure apps, enabling 2-step verification, and checking server settings???
Thanks a million!
You may be getting a common error that lots of people have been getting in the past month, see
https://github.com/salesagility/SuiteCRM/issues/2807
… but I don’t know, this is just a possibility.
hmmm, I use G-Suite for 2 years now with SuiteCRM. I am on version 7.8.3.
Ensure less secure apps is enabled and that you whitelist your servers IP with G-Suite. I haven’t had any issues with our team members emailing from within SuiteCRM, we also utilize the case system with emails as well without issue.
Also I use port 587, let me know if whitelist works.
Also, post pictures with screenshots of your config. AND give us details on the environment you are running on, OS, Apache or Nginx versions, PHP versions, etc.
Can you telnet to port 587 from your server? is your hosting provider blocking mail ports? (I have had this issue with several hosting providers, you typically need to submit a ticket for them to open up mail ports to your server.)
Hey angrymob,
Thanks for your replies. First of all, I’m just happy to hear it’s working for someone and can be done. So on to your suggestions:
I’ve confirmed that less secure apps enabled and then also whitelisted my server’s IP with G-suite. That didn’t seem to help any. I was using port 465, but changed to 587, with the aforementioned changes, but that didn’t help either.
I am able to telnet to port 587 from my host’s ip and send a HELO and MAIL FROM commands, but when I send a RCPT TO command, I get the message: “550 SMTP AUTH is required for message submission on port 587”. Does this mean my port is blocked by my host.?
I am running:
OS Windows 10
Apache 2.2.32
PHP 5.6.29
MySQL 5.6.32
Perl 5.10.1
I’m not an IT person, just a small business owner who has to wear all the hats, so please explain what config screenshot I should post, and where to get them.
Thanks for your help!
I have suite Installed on Google Cloud Platform on RHL OS, PHP 5.3.3 and MySQL 5.1.73
I use Gsuite for Emails. I am not able to configure Email settings on Google Cloud Platform for my Gsuite Emails.
All i get once i try to send test email is
Error:SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
I am not sure if you are having the same issue with me but in case anyone is looking for possible solution.
For my case, the gsuite does not work because it is performing an SSL veritifcation and causing the connection to halt.
So for G Suite to be used, you will need to set some configuration in the phpmailer.
Below is what i did. But bear in mind this is not upgrade safe. So be careful on this.
Look into your crm instance under /include/phpmailer/class.phpmailer.php
Search for $SMTPOptions
Should be somewhere around line 275
Replace the param with below
public $SMTPOptions = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
)
);
The above did the trick for me. Hope it works for anyone seeing this as well