When using the Send Email Smart Service nodes in a process, emails are not sent as expected. The following error is seen in the application server log:
INFO [stdout\] (Appian Work Item - 1 - ProcessExec00 :
[Appian Work Item - 1 - ProcessExec00 : UnattendedJavaActivityRequest]
ERROR com.appiancorp.process.runtime.activities.SendEmailActivity - java.lang.Exception: No valid recipients resolved
In addition, the following alert is seen in Appian Designer:
With these errors, the process instance will fail.
The "To" field of the "Send Email" node is not of the type emailRecipient. This can happen, for example, if there is a process variable that is of a type other than emailRecipient (such as Text) in the "To" field.
Cast the To field value to the emailRecipient type by using the toemailrecipient() function.
This article applies to all versions of Appian.
Last Reviewed: February 2017
© 2022 Appian. All rights reserved.