[7.10.X] Mail reply sends attachment from original mail ALWAYS #4242

Open
opened 2026-02-20 16:15:18 -05:00 by deekerman · 9 comments
Owner

Originally created by @fcorluka on GitHub (Mar 10, 2020).

Issue

When trying to reply to mail, CRM automatically sets attachment from the original mail.
When I don't want this attachment a can click on X button and it is visually gone. But when mail is sent, the receiver gets the mail with attachment !!

Expected Behavior

If the mail does not have attachment one should not be sent from a parent.

Actual Behavior

Sends not regarding the mail.

Possible Fix

This I believe is an architectural problem with mails. A reply mail is initially DRAFT but it is not a new bean, it is the same original mail (id is the same, issue #8554).
I see that in earlier version there was a problem with delete of attachment (issue #5520), and now I can not delete one.

Steps to Reproduce

  1. open mail with an attachment, and reply to it
  2. in reply check if the original attachment is automatically in the mail
  3. delete the attachment and send email
  4. check your mailbox - there should be mail with attachment

Context

I am sending mail totally wrong, in a totally wrong way with attachments I do not want!

Your Environment

  • SuiteCRM Version used: 7.10.22
  • Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): Firefox, Chrome
  • Environment name and version (e.g. MySQL, PHP 7): PHP 7.2, MySQL 5.7.29
  • Operating System and version (e.g Ubuntu 16.04): Ubuntu Server, Linux Mint 18
Originally created by @fcorluka on GitHub (Mar 10, 2020). #### Issue When trying to reply to mail, CRM automatically sets attachment from the original mail. When I don't want this attachment a can click on X button and it is visually gone. But when mail is sent, the receiver gets the mail with attachment !! #### Expected Behavior If the mail does not have attachment one should not be sent from a parent. #### Actual Behavior Sends not regarding the mail. #### Possible Fix This I believe is an architectural problem with mails. A reply mail is initially DRAFT but it is not a new bean, it is the same original mail (id is the same, issue #8554). I see that in earlier version there was a problem with delete of attachment (issue #5520), and now I can not delete one. #### Steps to Reproduce 1. open mail with an attachment, and reply to it 2. in reply check if the original attachment is automatically in the mail 3. delete the attachment and send email 4. check your mailbox - there should be mail with attachment #### Context I am sending mail totally wrong, in a totally wrong way with attachments I do not want! #### Your Environment * SuiteCRM Version used: 7.10.22 * Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): Firefox, Chrome * Environment name and version (e.g. MySQL, PHP 7): PHP 7.2, MySQL 5.7.29 * Operating System and version (e.g Ubuntu 16.04): Ubuntu Server, Linux Mint 18
Author
Owner

@pgorod commented on GitHub (Mar 10, 2020):

@fcorluka if you can please edit your post and add a hash before the numbers of the other Issues you mention, Github will recognize it and cross-link everything, which is very useful.

Thanks for opening this issue.

@pgorod commented on GitHub (Mar 10, 2020): @fcorluka if you can please edit your post and add a hash before the numbers of the other Issues you mention, Github will recognize it and cross-link everything, which is very useful. Thanks for opening this issue.
Author
Owner

@fcorluka commented on GitHub (Mar 16, 2020):

Anyone tried to test this?

@fcorluka commented on GitHub (Mar 16, 2020): Anyone tried to test this?
Author
Owner

@Mac-Rae commented on GitHub (Mar 17, 2020):

Hi @fcorluka,

This issue has been confirmed to exist and is replicable in the latest 7.10.x version.

Thanks 👍

@Mac-Rae commented on GitHub (Mar 17, 2020): Hi @fcorluka, This issue has been confirmed to exist and is replicable in the latest 7.10.x version. Thanks :+1:
Author
Owner

@dickeytsang commented on GitHub (Mar 26, 2020):

Anyone tried to test this?

Me, same issue on version 7.11.12; any suggestion?

@dickeytsang commented on GitHub (Mar 26, 2020): > > > Anyone tried to test this? Me, same issue on version 7.11.12; any suggestion?
Author
Owner

@tsmgeek commented on GitHub (May 11, 2020):

https://github.com/salesagility/SuiteCRM/pull/8715

This fixes some issues with creating new messages based of a received message. It may help.

@tsmgeek commented on GitHub (May 11, 2020): https://github.com/salesagility/SuiteCRM/pull/8715 This fixes some issues with creating new messages based of a received message. It may help.
Author
Owner

@SuiteBot commented on GitHub (Aug 26, 2021):

This issue has been mentioned on SuiteCRM. There might be relevant details there:

https://community.suitecrm.com/t/emails-with-attachments-when-replied-sends-all-attachments-even-after-removing/80519/2

@SuiteBot commented on GitHub (Aug 26, 2021): This issue has been mentioned on **SuiteCRM**. There might be relevant details there: https://community.suitecrm.com/t/emails-with-attachments-when-replied-sends-all-attachments-even-after-removing/80519/2
Author
Owner

@clemente-raposo commented on GitHub (Dec 6, 2021):

Hi @Mac-Rae,

I tried to reproduce this issue in the latest hotfix branch (7.12.x at the moment) and wasn't able to reproduce.

However, I noticed that when you click on on the modal that says "Email sent" you stay on the reply edit, instead of going to the list view.

  • That is a bug, though a separate one

@Mac-Rae could you try to reproduce, please?

These are the steps I did in order to try to reproduce:

  1. Send email with attachment using external mail client
    image

image

  1. Open email in Suite emails module
    image

image

  1. Click reply
    image

  2. Remove the attachment by clicking the 'X' on the left of the attachment
    image

image

  1. Add some text to the response body
    image

  2. Send email
    image

image

  1. Check email in Suite, no attachements
    image

image

  1. Check email in external mail client, no attachment
    image
@clemente-raposo commented on GitHub (Dec 6, 2021): Hi @Mac-Rae, I tried to reproduce this issue in the latest hotfix branch (7.12.x at the moment) and wasn't able to reproduce. However, I noticed that when you click on on the modal that says "Email sent" you stay on the reply edit, instead of going to the list view. - That is a bug, though a separate one @Mac-Rae could you try to reproduce, please? These are the steps I did in order to try to reproduce: 1. Send email with attachment using external mail client ![image](https://user-images.githubusercontent.com/1140849/144906684-3c233451-b62f-4f2e-9aa6-7d8c17b83da1.png) ![image](https://user-images.githubusercontent.com/1140849/144906783-a780cabc-caf4-4ade-9d8f-cc0fd20c7fa5.png) 2. Open email in Suite emails module ![image](https://user-images.githubusercontent.com/1140849/144906857-928f8fa8-deb7-4004-9969-5c482b4b9b18.png) ![image](https://user-images.githubusercontent.com/1140849/144906941-9fc84658-0910-4746-823e-9ee8b32ebb45.png) 3. Click reply ![image](https://user-images.githubusercontent.com/1140849/144907000-d67ee74e-abd7-4aa7-8979-49d16c0dd269.png) 4. Remove the attachment by clicking the 'X' on the left of the attachment ![image](https://user-images.githubusercontent.com/1140849/144907081-49bbd738-c687-448d-b184-d4f87461861c.png) ![image](https://user-images.githubusercontent.com/1140849/144907109-4059f596-c56a-4c9a-a511-805c881f4f8a.png) 5. Add some text to the response body ![image](https://user-images.githubusercontent.com/1140849/144907157-912aecbe-c64c-4991-a6ca-ed5d17932802.png) 6. Send email ![image](https://user-images.githubusercontent.com/1140849/144907200-ee7e8739-9c97-4119-9618-e07562e34dee.png) ![image](https://user-images.githubusercontent.com/1140849/144907244-816478e6-2f52-4ba8-bc1c-f2fc9a660d44.png) 7. Check email in Suite, no attachements ![image](https://user-images.githubusercontent.com/1140849/144907442-3629dae4-ede0-43ee-81cf-70e9e4eb2372.png) ![image](https://user-images.githubusercontent.com/1140849/144907492-e7a96554-e11b-407b-b61c-367234894acd.png) 8. Check email in external mail client, no attachment ![image](https://user-images.githubusercontent.com/1140849/144907549-7ea5529f-9795-487c-9e72-e0f1c89c82f1.png)
Author
Owner

@clemente-raposo commented on GitHub (Dec 8, 2021):

Hi @tsmgeek, @fcorluka, @pgorod

I've created the following MR, to fix some issues in email message modal: https://github.com/salesagility/SuiteCRM/pull/9393

  • It does not directly fix this issue, though its somewhat related.

Please have a look at the description for more details

@clemente-raposo commented on GitHub (Dec 8, 2021): Hi @tsmgeek, @fcorluka, @pgorod I've created the following MR, to fix some issues in email message modal: https://github.com/salesagility/SuiteCRM/pull/9393 - It does not directly fix this issue, though its somewhat related. Please have a look at the description for more details
Author
Owner

@Mac-Rae commented on GitHub (Dec 21, 2021):

Can confirm this Issue appears to hold over into 7.12.2 & 8.0.1 however the secondary issues related have been resolved with the lastest pushes.

Pressing reply on an email and removing the attachment by pressing the X on the purple token will still send an email with attachment when hitting send. We will continue to investigate this issue and update when we can 👍

@Mac-Rae commented on GitHub (Dec 21, 2021): Can confirm this Issue appears to hold over into 7.12.2 & 8.0.1 however the secondary issues related have been resolved with the lastest pushes. Pressing reply on an email and removing the attachment by pressing the X on the purple token will still send an email with attachment when hitting send. We will continue to investigate this issue and update when we can :+1:
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#4242
No description provided.