Author: pawan
Date: Sat Jun 22 12:16:05 2019
New Revision: 1861859
URL: http://svn.apache.org/viewvc?rev=1861859&view=rev
Log:
Fixed: Issue in which Ecommerce anonymous contactus was having wrong
fromAddress.
(OFBIZ-10844)
As per my understanding, sendFrom email cannot be the customer's email address.
Email settings for this email are maintained at ProductStoreEmailSetting with
CONT_NOTI_EMAIL as emailType and like other notifications, we should use
ProductStoreEmailSetting.fromAddress to send this email which is configurable.
Thanks: Schumann Ye for your contribution.
Modified:
ofbiz/ofbiz-framework/trunk/applications/party/minilang/communication/CommunicationEventServices.xml
Modified:
ofbiz/ofbiz-framework/trunk/applications/party/minilang/communication/CommunicationEventServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/party/minilang/communication/CommunicationEventServices.xml?rev=1861859&r1=1861858&r2=1861859&view=diff
==============================================================================
---
ofbiz/ofbiz-framework/trunk/applications/party/minilang/communication/CommunicationEventServices.xml
(original)
+++
ofbiz/ofbiz-framework/trunk/applications/party/minilang/communication/CommunicationEventServices.xml
Sat Jun 22 12:16:05 2019
@@ -662,7 +662,7 @@ under the License.
</else>
</if-not-empty>
<set field="emailParams.subject"
from-field="productStoreEmailSetting.subject"/>
- <set field="emailParams.sendFrom"
from-field="parameters.emailAddress"/>
+ <set field="emailParams.sendFrom"
from-field="productStoreEmailSetting.fromAddress"/>
<set field="emailParams.contentType"
from-field="productStoreEmailSetting.contentType"/>
<set field="emailParams.bodyScreenUri"
from-field="productStoreEmailSetting.bodyScreenLocation"/>
<call-service service-name="sendMailFromScreen"
in-map-name="emailParams"/>