$NOTIFY_HOSTADDRESS is correct, i think that’s more a problem with your curl command not expanding variables
$NOTIFY_HOSTADDRESS