mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
E-mail from field completely wrong when replying via suitecrm. Valid also in 7.12.4 #4479
Labels
No labels
Area: API
Area: Campaigns
Area: Cases
Area: Clean Up
Area: Clean Up: Performance
Area: Dashlets
Area: Databases
Area: Developer Tools
Area: Elasticsearch
Area: Elasticsearch
Area: Emails
Area: Emails:Campaigns
Area: Emails:Cases
Area: Emails:Compose
Area: Emails:Config
Area: Emails:Templates
Area: Environment
Area: Installation
Area: Language
Area: Mobile
Area: Module
Area: PDFs
Area: PHP8
Area: Reports
Area: Studio
Area: Styling
Area: Upgrading
Area: Workflow
Area:Activity Stream
Area:Calls
Area:Import
Area:Projects
Area:Search
Area:Surveys
Area:Themes
Area:Users
Branch:Hotfix
Good First Issue
Hacktoberfest
Help Wanted
PR:Community Contribution
PR:Type:Enhancement
Priority:Critical
Priority:Important
Priority:Moderate
Severity: Major
Severity: Minor
Severity: Moderate
Status: Requires Code Review
Status: Requires Updates
Status: Stale
Status: Team Investigating
Status:Assessed
Status:Fix Proposed
Status:Needs Assessed
Status:Requires Automated Tests
Type: Bug
Type:Deprecated
Type:Discussion
Type:Duplicate
Type:Invalid
Type:Question
Type:Suggestion
Type:Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SuiteCRM-SuiteCRM#4479
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @maurizioaiello on GitHub (Jan 30, 2021).
Issue
When I receive a mail from a customer, answering to that mail via mail module it happens that the From: Address is wrong.
It should be:
From: My_name myaddress@mydomain.com
Reply to: My_name myaddress@mydomain.com
instead it is:
From: Recipient_Name myaddress@mydomain.com
Reply to: Recipient_Name myaddress@mydomain.com
Expected Behavior
When answering to mail received from Mickey Mouse for example, and I reply, the recipient (Mickey Mouse) should see:
From: Mario Rossi mariorossi@mydomain.com
Reply to: Mario Rossi mariorossi@mydomain.com
Actual Behavior
Mickey Mouse receives:
From: Mickey Mouse mariorossi@mydomain.com
Reply to: Mickey Mouse mariorossi@mydomain.com
So When Mickey receives an e-mail from me, it seems that Mickey wrote the mail addressed to himself. If Mickey replies to the mail, I receive the answer of Mickey. But this obviously counter intuitive and wrong.
Possible Fix
Steps to Reproduce
On suitecrm receive a mail from user_A, then answer to that mail. Move to the user_A client, and then for example with thunderbird select "view message source" or view full header or similar in other mail clients, and have a look to the mail from: and reply to: record in the txt
Context
For me it is a very important issue. I stopped answering to customers via suitecrm because, it is bad that they see that their name is shown as the sender of an e-mail sent to themselves.
Your Environment
@criterion9 commented on GitHub (Oct 18, 2021):
+1 also having this problem
@criterion9 commented on GitHub (Oct 29, 2021):
After trying to peek into the email related code and finding that 2 hours with code traversing tools was not sufficient to fully track down the root issue (seems related to a fix to where all outgoing emails were using the system email from_name several releases ago). In short, the entirety of email handling within v 7.10.x is an absolute mess and will likely not be completely fixable without a total rewrite IMO. I'm not sure if the v7.11.x versions are any better, does anyone know if the email handling is better?
As a blunt workaround we added a line to modules/Emails/EmailsController.php after the call to $this->ReplaceEmailVariables (around line 252):
unset($this->bean->from_addr_name);
This is not a permanent fix in any way and will remove all the "from name" blocks from sent emails so this may not be a good workaround where only a shared group email has been used with the "from name" switching based on the current user.
@maurizioaiello commented on GitHub (Jan 3, 2023):
Patch from MarcoBlancas works.
After changing the files, it is necessary to:
Quick repair and rebuild the database
delete cache/smarty/templates_c/* from suitecrm directory
perform the three operations: “Rebuild Javascript Languages”, “Rebuild JS grouping file”, “RepairJS files”
This has to be done until the patch will not be included into the main distribution
@maurizioaiello commented on GitHub (Jan 6, 2023):
Bug still present in suitecrm 8.2.2
@serhiisamko091184 commented on GitHub (Oct 4, 2024):
Hello @maurizioaiello,
Thanks for bringing this issue to our attention,
I tried to replicate the issue using the latest version of SuiteCRM 7 (7.14.5) and, I'm afraid I was not successful.
I tested both the Thunderbird Mail client and Google Chrome browser to check FROM/TO.
According to the last comment - the issue was present in SuiteCRM 8.2.2. We have just released the 8.7.0 version, I didn't manage to replicate the problem in there as well.
Have you been experiencing the same issue so far?
Thanks in advance!
Regards,
Serhii
@johnM2401 commented on GitHub (Aug 25, 2025):
Hey!
Thank you for raising this issue.
I've given this a try on the latest release, and I have not been able to replicate.
I recieve an Email from my local test email:
I reply to this, which populates my From/To correctly:
On the recieved emails, the Header has the correct To / From / Reply to addresses:
I'm going to close this off for now.
However, if I have perhaps missed something or misunderstood the issue, please get in touch.
Or, if you are still experiencing this in the latest releases, please get in touch with this.
Thank you again!