The internal_sendmail command works only when configured in the following field:
SmartDashboard - go to '
Policy' menu - click on '
Global Properties' - go to '
Log and Alert' pane - click on '
Alerts' section - check the box '
Run mail alert script'.
The command does not work when configured in the '
Run UserDefined script' fields.