Gmail account errors

Set up the gmail account with SuiteCRM 7.13 and it sent test email successfully. When I try to send it from Email module, it did not work.

In log file:

Email Error: Not authorized to use Outbound Account "something"

[SECURITY] User SOMEONE attempted to send an email using incorrect email account settings in which they do not have access to.

Also, the email stopped working after few hours. What is an issue? How to resolve it?

Hi @rsp , since you were able to send a test email, I suppose you correctly set up the Gmail account on your SuiteCRM instance (App password, OAuth authentication,…)

That error —

“Not authorized to use Outbound Account ‘something’” — appears when a user tries to send an email using an Outbound Email Account (SMTP) they are not permitted to access.

You can:

a) Assign the Outbound Account to the User

b) Make It a “System” Account (for all users) and allow users to send emails using this account

1 Like

How to do this one? I want to do this.

in the admin page > Email settings:


Config the system Outgoing account (you’re using it to send rminders, notifications, alerts,…):

You may also want to let Users to use it without creating their own Email Account:

When this option selected, all users will be able to send emails using the same outgoing mail account used to send system notifications and alerts.
If the option is not selected, users can still use the outgoing mail server after providing their own account information.

1 Like

I’ve that “users may send as this account’s identity”.

Whenever I go to the Email Settings menu. The Enable SMTP over SSL or TLS? option goes to None. I am trying to set it to TLS.

image


When I try to send email from the Email module → Compose

I am getting the below error:

SugarPHPMailer encountered an error: SMTP Error: Could not authenticate.

Excuse me, since you’re on SuiteCRM 7.13 your admin page shows this section:

First set your port number (ie.587) then choose the TLS option:

1 Like

Yes, it is weird issue. I went to Email Settings. Set port and then select TLS. Then SAVE.

Again went back to email settings, now I do not see the TLS selected in the dropdown. It is back to none. (I tried to send TEST EMAIL, it got failed with error - SugarPHPMailer encountered an error: SMTP Error: Could not authenticate.)

Since it’s a known issue in your version, please try this:

Quick Fix

Edit the config_override.php manually.

  1. Go to:
<your SuiteCRM root>/config_override.php
  1. Add (or fix) the lines:
$sugar_config['mail_smtptype'] = 'smtp';
$sugar_config['mail_smtpserver'] = 'smtp.gmail.com';
$sugar_config['mail_smtpport'] = '587';
$sugar_config['mail_smtpssl'] = 'tls';
$sugar_config['mail_smtpuser'] = 'your@gmail.com';
$sugar_config['mail_smtppass'] = 'your-app-password';
$sugar_config['mail_smtpauth_req'] = true;
  1. Save the file, then Admin → Repair → Quick Repair and Rebuild.
  2. Go back to Admin → Email Settings — it should now display TLS properly.

:white_check_mark: Important: Gmail now requires App Passwords (for accounts with 2-step verification). You cannot use your normal Gmail password.

1 Like