send email using SMTPNOTE in mainframe
Use the following JCL to send email from mainframe using SMTPNOTE. There are other ways of sending emails as well.
Note:- Attachements can’t be send using SMTPNOTE.
//STEP01Â Â EXEC PGM=IKJEFT01,
//Â Â Â Â Â Â Â Â Â Â Â Â DYNAMNBR=250
//SYSPROCÂ DDÂ DSN=XXX.DSN.ALLOC.TO.SYSPROC,
//Â Â Â Â Â Â Â Â Â Â Â Â DISP=SHR
//SYSTSINÂ DDÂ *
SMTPNOTE +
  TO(toemailaddress@example.com)       +
  CC(ccemailaddress@example.com)       +   SU(SUBJECT HERE)                     +   DA(‘USERID.DSN.BODY.TEXT’) BATCH
//SYSTSPRT DDÂ SYSOUT=*
//SYSUDUMP DDÂ SYSOUT=*