Compose Email making 2 entries in Sent Items while Inbound is configured #4598

Open
opened 2026-02-20 16:20:21 -05:00 by deekerman · 2 comments
Owner

Originally created by @miaannabeel on GitHub (Aug 10, 2021).

Issue

When an Inbound Email (Personal) is configured and Current User attempts to send an email from Emails module (Compose) the system make 2 entries in Sent Items instead of single.
Sent

Expected Behavior

Only one entry should be created in Sent Items.

Actual Behavior

Email received once but sending account (Inbound Email) always have 2 entries in Sent Items.

Steps to Reproduce

  1. Go to user Profile, scroll down and click Settings button
  2. From PopUp select Mail Accounts and configure an Inbound Email.
  3. Go to Emails module and select action Compose.
  4. Now enter any email in To: and select configured Inbound Email in From and hit send button.
  5. Check sent items of configured Inbound Email and there will be two email entries.

Environment

  • SuiteCRM Version used: 7.11.20
  • Browser: Chrome Version 92.0.4515.107 (Official Build) (64-bit)
Originally created by @miaannabeel on GitHub (Aug 10, 2021). #### Issue When an Inbound Email (Personal) is configured and Current User attempts to send an email from Emails module (Compose) the system make 2 entries in Sent Items instead of single. ![Sent](https://user-images.githubusercontent.com/32669244/128905037-4e1616be-1530-4817-986a-dccd325afb76.png) #### Expected Behavior Only one entry should be created in Sent Items. #### Actual Behavior Email received once but sending account (Inbound Email) always have 2 entries in Sent Items. #### Steps to Reproduce 1. Go to user Profile, scroll down and click Settings button 2. From PopUp select Mail Accounts and configure an Inbound Email. 3. Go to Emails module and select action Compose. 4. Now enter any email in To: and select configured Inbound Email in From and hit send button. 5. Check sent items of configured Inbound Email and there will be two email entries. #### Environment * SuiteCRM Version used: 7.11.20 * Browser: Chrome Version 92.0.4515.107 (Official Build) (64-bit)
Author
Owner

@johnM2401 commented on GitHub (Aug 11, 2021):

For reference, looks to be the same issue as: https://github.com/salesagility/SuiteCRM/issues/9118

Thank you for raising this!

@johnM2401 commented on GitHub (Aug 11, 2021): For reference, looks to be the same issue as: https://github.com/salesagility/SuiteCRM/issues/9118 Thank you for raising this!
Author
Owner

@miaannabeel commented on GitHub (Aug 13, 2021):

@johnM2401 Thank you for replying. I have visited the referred issue but none of those help resolve the issue. I tried debugging this issue on my own but couldn't came up with proper solution. However I have found that it's fixed i.e. only one entry is made in Sent If I remove/comment line no. 3128 to line no.3130 in:
modules/Emails/Email.php

if (!$ieMailId = $this->getTempEmailAtSend()->saveAndStoreInSentFolderIfNoGmail($ie, $ieId, $mail, $nonGmailSentFolder, $check_notify, $options)) {
       LoggerManager::getLogger()->debug('IE Mail ID is ' . ($ieMailId === null ? 'null' : $ieMailId) . ' after save and store in non-gmail sent folder.');
}

I am not sure if commenting those would effect my system somehow or not?

@miaannabeel commented on GitHub (Aug 13, 2021): @johnM2401 Thank you for replying. I have visited the referred issue but none of those help resolve the issue. I tried debugging this issue on my own but couldn't came up with proper solution. However I have found that it's fixed i.e. only one entry is made in Sent If I remove/comment line no. 3128 to line no.3130 in: modules/Emails/Email.php ```php if (!$ieMailId = $this->getTempEmailAtSend()->saveAndStoreInSentFolderIfNoGmail($ie, $ieId, $mail, $nonGmailSentFolder, $check_notify, $options)) { LoggerManager::getLogger()->debug('IE Mail ID is ' . ($ieMailId === null ? 'null' : $ieMailId) . ' after save and store in non-gmail sent folder.'); } ``` I am not sure if commenting those would effect my system somehow or not?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#4598
No description provided.