tracker issue : CF-3788148

select a category, or use search below
(searches all categories and all time range)
Title:

cfexchangemail: The CC, BCC, fromID, toID attributes in a retrieved mail do not display the display names.

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / ext-user (Piyush Kumar Nayak)

Created: 07/11/2014

Components: CFExchange

Versions: 11.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 289822 /

Priority/Frequency: Normal / Most users will encounter

Locale/System: English / Windows 7 64-bit

Vote Count: 0

Listed in the version 11.0.03.292480 Issues Fixed doc
Problem: cfexchangemail: The CC, BCC, fromID, toID attributes in a retrieved mail do not display the display names.

Method:
<cfset exchangeServerIP= "xx.xx.xx.xx">
<cfset user1="xxxx">
<cfset password="xxx">
<cfset version = "2010">
<cfset protocol = "HTTP">

<cfmail 
	from="regressionuser3@domain.com" to="reg-user1-alias@domain.com, regressionuser1@domain.com" 
	cc = "regressionuser4@domain.com"
	subject="mail to multi recepents and an alias" 
	server= "#exchangeServerIP#"	
	port = "25">
	= = = = = = = = = = = = = = = = = = = = = = = =
	testing mail from alias addresses
	= = = = = = = = = = = = = = = = = = = = = = = =
</cfmail>
<cfset sleep(6000)>

<cfexchangeConnection
action="open"
username ="#user1#"
password="#password#"
server="#exchangeServerIP#"
serverversion="#version#"
protocol="#protocol#"
connection="excon">

<cfexchangemail
	action = "get"
	name = "q_usrmails"
	connection = "excon"
	getheaders = true
	folder = "Inbox">
</cfexchangemail>

<cfdump var=#q_usrmails# label="recvd mail">
<cfexchangeConnection action="close" connection="excon">

Result:
CC:	regressionuser4@domain.com
FromId: regressionuser3@domain.com
ToId: reg-user1-alias@domain.com,reg-user1-alias@domain.com

Expected:
CC:	"regressionuser4" <regressionuser4@domain.com>
FromId: "regressionuser3@domain.com" <regressionuser3@domain.com>
ToId: "regression user 1" <reg-user1-alias@domain.com>,"regression user 1" <reg-user1-alias@domain.com>

Workaround:
n/a

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3788148

External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:

Attachments:

Comments:

This is not a bug. We are using cfmail to send the mail. If you are using cfmail tag to send the mail, you can specify anything as the from id. For example:- <cfmail from="junkvalue@somedomain.com" to="#to_email#" cc="#cc_email#" subject= "#msg_sub#" server= "#exchangeServerIP#" port = "25"> = = = = = = = = = = = = = = = = = = = = = = = = test mail = = = = = = = = = = = = = = = = = = = = = = = = </cfmail> Here the from id is just any string. The Exchange server will not validate the from id, it will just show it as the from id. Even if you give a correct address for the cfmail from attribute, it is the same case. Exchange server just shows what ever value you are sending the mail with. If you use OWA to send mail, you can see that the server validates and resolves the address and you can get correct display name. It is a behavior of cfmail. If you want to send a display name for the from field of the mail, you can send use like Display Name <user@domain.com> for example <cfset from_email = "regression user 3 <#from_user#" & "@" & "#domain#>"> This show proper display name for the from field as well. Verify and close the other issues.
Comment by Paul N.
11640 | August 21, 2014 04:10:14 AM GMT
Verified this is fixed in CF11 Update 3 (11,0,03,292024(PreRelease)). Steps I used to reproduce: 1) In Exchange 2010 OWA, sent new email with CC and BCC 2) In CF11 Final (11,0,0,289822), display names were not shown for FromId, ToId, CC, BCC 3) In CF11 Update 3 (11,0,03,292024(PreRelease)), display names are shown for FromId, ToId, CC, BCC Thanks!, -Aaron
Comment by External U.
11641 | November 08, 2014 11:45:23 PM GMT