This is the JCL coding, I am using for generating mail. I received the email but i didn't get the subject line. And also, i included some CC for that mail. Not sure, why these are not working. Kindly let me know if anything missed in the below coding.
SUBJECT:AUTOMATED MESSAGE FOR TESTING
Joined: 06 Jun 2008 Posts: 8449 Location: Dubuque, Iowa, USA
In SMTP, everything after the DATA line is not used for addressing the email. If you want to CC someone, you'll have to include information before the DATA line for them. If you don't know how to do this, Google RFC 2821 and start reading.
Whether or not the subject will be picked up depends upon your email client. You'll need to research that topic somewhere else since it is NOT a mainframe issue.