There are recipients set in the notification "Who will receive" tab
The instance has an email script trying to change the recipient list using
email_action object with a script similar to next one:
The notification preview shows that apparently the recipients was properly set as the code above logic
Release or Environment
EmailOutbound object's addAddress() method, "to" recipients cannot be modified, as per the docs it supports "cc" and "bcc" only.
Using "email_action" - GlideRecord object for the email notification, it is not possible to change the recipients in the email as it is not the EmailOutbound object(actual email)
For more information, please refer to our documentation: Mail script API
Use an event based notification
The option "Event parm 1 contains recipient " is available for event based notifications
Pass the recipient in parm1 while creating event from the script/business rule.
For more information about how to create a notification, follow our documentation page Create A Notification