If anyone was wondering, the solution is here:
https://techdocs.broadcom.com/us/en/ca-enterprise-software/intelligent-automation/workload-automation-agent-for-sap/12-0/configuring/Agent-parameters-to-configure-email-notifications.html