bug: Compose Email Page Lacks "FROM NAME" in HTML value="" attribue, leading to Bug in sent Mails #4152

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

Originally created by @ichtestemalwieder on GitHub (Nov 29, 2019).

Issue

Although the SMTP Outgoing Email Configuration for Personal Email Accounts does have a field for the FROM NAME, the Create Email Page does NOT popuplate/print out this FROM NAME in the select options value="" attribute.
This leads to a strange parsing error with the result, that the Recipient receives an Email, where the FROM NAME equals to the recepients Email Adresss!! Pls see screenshots for details

Steps to Reproduce

1.) Configuration with FROM NAME correctly set
image

2.) This is how this got outputted in HTML in the Compose Email Page: Here the error is created. You can see, no FROM NAME value is printed for the first entry in the value="" attribute. The second is OK (this is a System account configured from the Admin, No Personal Account).

<select name="from_addr" id="from_addr_name">
<option value="xxxx@xxx.com" inboundid="d7c62e47-20f3-f133-1555-5de06e7ee52e" infos=....
<option value="FROM NAME &amp;lt;xxx@xxxx.com&amp;gt;" inboundid="19c4d3a3-e661-e803-1e00-5ddecf4bac88" infos="

This is how the screen with the select itself looks. 1= The Senders Name in the form of Firstname Secondname, 2 andits the email address of the sender in the form of xxxx.@xxxx.com. 3 is the recipients email Adress.
image

3.) The resulting Error (after submission of the page) in the logs as the names seems not to be parsable
image

4.) The resulting Error in the Mail Client (At Position 1 there is the value of the recipient Email, the same as position 3.) This is extremmely confusing for the recipient having its email adress as the senders name.
image

Possible Fix

The personal Email Configuration Page needs to print the FROM NAME in the respective Select value="" option:

Proof:
When I changed this value (in the Create Email Page) with Chrome Developer Tools from:
<option value="xxxx@xxx.com" inboundid="d7c62e47-20f3-f133-1555-5de06e7ee52e" infos=...
To:
<option value="YYYYY &lt;xxxx@xxx.com&gt;" inboundid="d7c62e47-20f3-f133-1555-5de06e7ee52e" infos=...
The recipient receives a correct Email with YYYYY als the sender Name and everything is OK....

Your Environment

  • SuiteCRM Version used: 7.11.10
  • Environment name and version (e.g. MySQL, PHP 7): Bitnami Docker Container
Originally created by @ichtestemalwieder on GitHub (Nov 29, 2019). #### Issue Although the SMTP Outgoing Email Configuration for Personal Email Accounts does have a field for the FROM NAME, the Create Email Page does NOT popuplate/print out this FROM NAME in the select options `value=""` attribute. This leads to a strange parsing error with the result, that the Recipient receives an Email, where the FROM NAME equals to the recepients Email Adresss!! Pls see screenshots for details #### Steps to Reproduce 1.) Configuration with FROM NAME correctly set ![image](https://user-images.githubusercontent.com/54768881/69902804-f03df780-1391-11ea-99c7-d6373b7f3155.png) 2.) This is how this got outputted in HTML in the Compose Email Page: Here the error is created. You can see, **no** FROM NAME value is printed for the first entry in the `value=""` attribute. The second is OK (this is a System account configured from the Admin, No Personal Account). ``` <select name="from_addr" id="from_addr_name"> <option value="xxxx@xxx.com" inboundid="d7c62e47-20f3-f133-1555-5de06e7ee52e" infos=.... <option value="FROM NAME &amp;lt;xxx@xxxx.com&amp;gt;" inboundid="19c4d3a3-e661-e803-1e00-5ddecf4bac88" infos=" ``` This is how the screen with the select itself looks. 1= The Senders Name in the form of Firstname Secondname, 2 andits the email address of the sender in the form of xxxx.@xxxx.com. 3 is the recipients email Adress. ![image](https://user-images.githubusercontent.com/54768881/69902909-19ab5300-1393-11ea-8bdf-de4b47d2b4bc.png) 3.) The resulting Error (after submission of the page) in the logs as the names seems not to be parsable ![image](https://user-images.githubusercontent.com/54768881/69895094-ae796680-1329-11ea-9824-3ab1e61eb77c.png) 4.) The resulting Error in the Mail Client (At Position 1 there is the value of the recipient Email, the same as position 3.) This is extremmely confusing for the recipient having its email adress as the senders name. ![image](https://user-images.githubusercontent.com/54768881/69895071-6a866180-1329-11ea-81a2-6a1c72284e9e.png) #### Possible Fix The personal Email Configuration Page needs to print the FROM NAME in the respective Select value="" option: Proof: When I changed this value (in the Create Email Page) with Chrome Developer Tools from: `<option value="xxxx@xxx.com" inboundid="d7c62e47-20f3-f133-1555-5de06e7ee52e" infos=...` To: `<option value="YYYYY &lt;xxxx@xxx.com&gt;" inboundid="d7c62e47-20f3-f133-1555-5de06e7ee52e" infos=...` The recipient receives a correct Email with YYYYY als the sender Name and everything is OK.... #### Your Environment * SuiteCRM Version used: 7.11.10 * Environment name and version (e.g. MySQL, PHP 7): Bitnami Docker Container
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#4152
No description provided.