I have been able to send an email. But this time I have been asked to send a file as an attachement to the email.
The logic I applied is
1) created a file with Generic Email format with TO, SUBJECT and
Content-Disposition: attachment; filename="MISMATCH_RPT.txt".
2) concatenated the above to the actual Mainframe file( which needs to be sent as attachment).
3) The concatenated file was SMTP'd.
Although I received an Email, the contents of the file were displayed on the email and was not sent as an attachement.
Kindly revert if I have to provide any further info to resolve this.