That message does not have an attachment. The CONTENT-DISPOSITION field has significance to the reciving application, not to the sending application.
The normal way to do what you want is to zip the file and send a message containing MIME MIME-Version, Content-Type Header Field and Content-Transfer-Encoding header fields, and a MIME part containing a boundary delimiter line, Content-Type multipart; boundary=foo and Content-Transfer-Encoding header fields, an empty line and the zipped file., -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List [[email protected]] on behalf of Carmen Vitullo [[email protected]] Sent: Wednesday, April 27, 2022 11:26 AM To: [email protected] Subject: Re: Send an email with a Zip file as an attachment? one more better example //SMTPTEST EXEC PGM=IEBGENER //SYSPRINT DD SYSOUT=* //SYSOUT DD SYSOUT=* //SYSIN DD DUMMY //SYSUT1 DD * HELO LITJES2T MAIL FROM:[email protected] RCPT TO:<@MAIL.NET:[email protected]> DATA SUBJECT: Z/OS SYST SMTP MAIL TESTING WITH ATTACHMENT MIME-VERSION: 1.0 CONTENT-TYPE: TEXT/PLAIN CONTENT-DISPOSITION: ATTACHMENT; FILENAME=user.JCL.CNTL(BR14) - /* //SYSUT2 DD SYSOUT=(B,SMTP) On 4/27/2022 10:20 AM, Sasso, Len wrote: > I have already created the Zip file with PKZIP (LRECL=80). > An example of using IEBGENER and attaching the Zip file would be appreciated. > > > Thank You and Please Be Safe! > > Len Sasso > Systems Administrator Senior > CSRA, A General Dynamics Information Technology Company > 327 Columbia TPKE > Rensselaer, NY 12144 > > TEAM: Together Everyone Achieves More > > Office Hours: M-F 7 AM - 3:45 PM > > Vacation: > > Phone: (518) 257-4209 > Cell: (518) 894-0879 > Fax: (518) 257-4300 > [email protected] > URL:https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.gdit.com%2F&data=05%7C01%7Csmetz3%40gmu.edu%7C1673fdd15eda4ff3ed1f08da28625f89%7C9e857255df574c47a0c00546460380cb%7C0%7C0%7C637866700228798562%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=RKuMDSVf%2B1cBR%2BAxYn6lu7Vb1WLejAjKBGhDCF60bU8%3D&reserved=0<https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.gdit.com%2F&data=05%7C01%7Csmetz3%40gmu.edu%7C1673fdd15eda4ff3ed1f08da28625f89%7C9e857255df574c47a0c00546460380cb%7C0%7C0%7C637866700228798562%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=RKuMDSVf%2B1cBR%2BAxYn6lu7Vb1WLejAjKBGhDCF60bU8%3D&reserved=0> > > > > > ________________________________ > From: IBM Mainframe Discussion List<[email protected]> on behalf of > Carmen Vitullo<[email protected]> > Sent: Wednesday, April 27, 2022 11:14 AM > To:[email protected] <[email protected]> > Subject: Re: Send an email with a Zip file as an attachment? > > > > [External: Use caution with links & attachments] > > I have an example, not attaching a zip file - do you have a product like > PKZIP on the mainframe? > > if you need an example of using IEBGENER and attaching a file I can > provide an example > > Carmen > > On 4/27/2022 10:04 AM, Sasso, Len wrote: >> Is it possible to send an email with a Zip file as an attachment, from our >> mainframe (z/OS 2.3) executing IEBGENER via SMTP? >> If so, could you please provide an example? >> >> >> >> >> Thank You and Please Be Safe! >> >> Len Sasso >> Systems Administrator Senior >> CSRA, A General Dynamics Information Technology Company >> 327 Columbia TPKE >> Rensselaer, NY 12144 >> >> TEAM: Together Everyone Achieves More >> >> Office Hours: M-F 7 AM - 3:45 PM >> >> Vacation: >> >> Phone: (518) 257-4209 >> Cell: (518) 894-0879 >> Fax: (518) 257-4300 >> [email protected] >> URL:https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.gdit.com%2F&data=05%7C01%7Csmetz3%40gmu.edu%7C1673fdd15eda4ff3ed1f08da28625f89%7C9e857255df574c47a0c00546460380cb%7C0%7C0%7C637866700228798562%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=RKuMDSVf%2B1cBR%2BAxYn6lu7Vb1WLejAjKBGhDCF60bU8%3D&reserved=0<https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.gdit.com%2F&data=05%7C01%7Csmetz3%40gmu.edu%7C1673fdd15eda4ff3ed1f08da28625f89%7C9e857255df574c47a0c00546460380cb%7C0%7C0%7C637866700228798562%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=RKuMDSVf%2B1cBR%2BAxYn6lu7Vb1WLejAjKBGhDCF60bU8%3D&reserved=0> >> >> >> >> >> ---------------------------------------------------------------------- >> For IBM-MAIN subscribe / signoff / archive access instructions, >> send [email protected] with the message: INFO IBM-MAIN >> >> > -- > /I am not bound to win, but I am bound to be true. I am not bound to > succeed, but I am bound to live by the light that I have. I must stand > with anybody that stands right, and stand with him while he is right, > and part with him when he goes wrong. *Abraham Lincoln*/ > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email [email protected] with the message: INFO IBM-MAIN > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email [email protected] with the message: INFO IBM-MAIN > > -- /I am not bound to win, but I am bound to be true. I am not bound to succeed, but I am bound to live by the light that I have. I must stand with anybody that stands right, and stand with him while he is right, and part with him when he goes wrong. *Abraham Lincoln*/ ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
