Allow multiple recipients in Approval mail to requestor
We have a client who uses a lot of multiple recipients in the email field in the EM table.
When such an employee, with multiple recipients in the email field, creates a Service Desk ticket then he/she will not receive the approval mail.
Instead the error "Illegal address" is logged in the afmnotificationslog table.
Unlike the sendMessage method in Message.java, the method checkRequired in the Approval step (approval.java) does not split the email values into multiple recipients
APPROVAL.JAVA:
requestor_email = getEmailAddress(this.context, requestor);
MESSAGE.JAVA:
public void sendMessage(){
if (StringUtil.notNullOrEmpty(this.mailTo)){
// for multiple recipients, we assume separator for the multiple recipients is ","/";"
String[] recipients = this.mailTo.split(";");
// for multiple recipients,
if (recipients != null && recipients.length == 1) {
recipients = this.mailTo.split(",");
}
Would it be possible to also implement this split action in the checkRequired method found in Approval.java?
