We have set up a SAP Job to send Email notifications and attach the spool file.
We are not getting the emails when the job completes.
How can we test the email configurations?
AutoSys 12.X 24.X
System Agent 12.X 24.X
There are several options for testing the SMTP process from the agent.
These need to be completed on the Agent where the SAP job is running:
Option 1:
Please use the telnet process to validate that you can send an email directly from the agent machine.
This will work on Windows or Linux as long as the telnet client is installed.
Once this is confirmed using the values parameter values from the agentparmt.txt and the SAP JOBsmtp.server=<SMTP-SERVER>.<DOMAIN>.comsap.mail.from=<EmailUser>@<DOMAIN>.comrecipient=<EmailUser>@<DOMAIN>.com
Option 2:
The SAP Plugin has a mail test utility.
1) Set the JAVA_HOME and PATH
# below are not needed but might help to set JAVA_HOME and PATH to have Autosys Java stuff:
#Unix
JAVA_HOME=/opt/CA/WorkloadAutomationAE/jre; export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH; export PATH
#Windows
set JAVA_HOME="C:\Program Files\CA\WorkloadAutomationAE\jre"
set PATH=%JAVA_HOME%\bin;%PATH%
2) From the agent directory, run the following:java -cp "jars/agent.jar:jars/sap.jar:jars/ext/mail.jar:jars/ext/activation.jar" -Dsmtp.server=<FWDN FOR SMTP SERVER> -Dsap.mail.from=<MAIL FROM EMAIL ADDRESS> -Dmail.debug=true cybermation.plugins.sap.utility.CybMail <SEND TO EMAIL ADDRESS>
The below KB articles provides
How to send SAP Spool by Email with WA Agent