Can "To" field be empty in SailPoint in Joiner email?

Hello Everyone;
Can SailPoint have “to” field empty in a new hire email?
I want new-hire email to be sent to the shared mailbox if no manager is present. Everything seems working except i can’t leave"to"
field empty

strManagerEmail=manageremail;
if(strManagerEmail != null)
		{
			mailArgs.put("to",strManagerEmail);
		}
mailArgs.put("to"," ");
mailArgs.put("identity",identity);
mailArgs.put("idenPassword",context.decrypt(strPassword));
mailArgs.put("identityDisplayName",identity.getDisplayName());
						
sentEmail(context,strManagerEmailTemplateName,mailArgs);

You can’t have “TO” field empty, if the manager is not present, then it use the Distribution list email address.

@sunnyajmera Thank you

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.