How to send SAP Spool by Email

Document ID : KB000074515
Last Modified Date : 28/06/2018
Show Technical Document Details
We are trying to schedule jobs in WAAE Autosys which can send the SAP Spool to the outlook email id of users.
We used the below settings in our job definition, but we are not able to send the SAP spool by email.
insert_job: job12
job_type: SAP
sap_release_option: A
sap_step_parms: variant=….,sap_maillist="destination@domain",dest="MAIL",banner_page=N,copies=1,release=N,prt_arc_mode=PRINT,print_imm=Y,new_spool=Y,format="X_65_132",footer=N
We also tried to add the “sap_recipients” attribute to the job definition with recipient=destination@domain with no quotes as in the below example:
sap_recipients: no_print=n, no_forward=n, blind_copy=n, express=n, rcp_type=int, recipient=destination@domain, copy=n
Then in the “sap_step_parms” attribute we removed the sap_maillist
sap_step_parms: variant…..,dest="MAIL",banner_page=N,copies=1,release=N,prt_arc_mode=PRINT,print_imm=Y,new_spool=Y,format="X_65_132",footer=N
But this solution did not allow to send the SAP spool by email.

WA Agent 11.3 + SAP plugin
Please add the following parameters in the “agentparm.txt” file of your Agent:
smtp.server=<host name of the mail server>
Then restart the Agent for this modification to be taken into account by:

"cybAgent -s" to stop the Agent followed by "cybAgent -a" to start it.

This solution allowed to send successfully the job spool file by email as requested.