Hello,
This will get you started.
//MAILJOB JOB NOTIFY=&SYSUID
//S1 EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//*
//SYSUT1 DD *
HELO N1
MAIL FROM: <YOU@N1.XYZ.COM>
RCPT TO: <SOMEONE@GMAIL.COM>
DATA
TO: <SOMEONE@GMAIL.COM>
FROM: "FRED"<FRED@N1.XYZ.COM>>
SUBJECT: TCP/IP MAIL FROM MVS BATCH ON SYSA
THIS IS A TEST MESSAGE FROM BATCH.
/*
// DD DISP=SHR,DSN=MORE.EMAIL.DATA
//SYSUT2 DD SYSOUT=(B,SMTP)
//*
If there are specific questions, they should be site-specific and your system support or network people will have those answers.