Minor change to sendMailFromTemplateSetting service: Log message when no email address is found instead of throwing exception.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1294102 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrian Crum
2012-02-27 10:52:22 +00:00
parent 520ee73139
commit f4de5909bb
@@ -38,11 +38,8 @@ under the License.
<result-to-field result-name="emailAddress" field="parameters.sendTo"/>
</call-service>
<if-empty field="parameters.sendTo">
<log level="error" message="PartyId: ${parameters.partyIdTo} has no valid email address!"></log>
<add-error>
<fail-property resource="CommonUiLabels" property="CommonEmailNotValid"/>
</add-error>
<check-errors/>
<log level="info" message="PartyId: ${parameters.partyIdTo} has no valid email address, not sending email"></log>
<return/>
</if-empty>
</if-empty>
</if-not-empty>