So while setting up the outgoing email for Gmail, I kept running into this same error ad-nauseum: “Error:The following From address failed:” A colleague and I spent two hours narrowing down the problem, as Yahoo worked fine, but Gmail kept giving us that same error. In the end, here’s the way to fix the problem:
First, go into your SuiteCRM directory, then the include folder, and then find the “SugarPHPMailer.php” file. Open that, scroll down until you find the line that says: “$this->IsHTML” and on the next line, add “$this->Helo = $_SERVER[‘HTTP_HOST’];” The problem is that Gmail apparently requires Helo, which tells the server where the email request is coming from. Without it, it won’t allow for authorization and the email won’t send.
Also, make sure that you allow for “Less secure apps” within the Gmail address settings that you’re going to use for outgoing mail. You can find that setting at: https://www.google.com/settings/security/lesssecureapps. Make sure you click “Turn on” and then the emails should successfully go through your Gmail account from SuiteCRM.
I’ve included images for both locations for this fix in case you need any help. Just felt like sharing this bit of info in case anyone else runs into this problem, too.
Thanks for reading and have a nice day.