How to send email from mainframe?

How to send email from mainframe?

Hi

My name is Aakash, and I have recently joined a project on mainframe, my requirement is to send an email from Jcl, if the job executes successfully. Since I am new to the concepts, I am posting this query to your forum.

Can someone provide me the JCL for sending email notifications? Also it would be great if the example includes the method of sending an attachment to the users.

Does sending email from mainframe id require special privileges ?

“; ; ; ;