View previous topic :: View next topic
|
Author |
Message |
tjk3030
New User
Joined: 18 Mar 2006 Posts: 22
|
|
|
|
I'm using z/os pkzip to zip a file on the mainframe. Then I'm creating an email msg with it as an attachment, its a batch job going thru smtp server.
The email gets to my mailbox ok but when try to unzip attachment get the following: Cannot Open File: It does not appear to be valid archive.
If I take zipped file and send it to another server, unzips fine. Its just when I use to as an attachment its corrupt I guess.
Here the html part of my email:
--SIMPLE BOUNDARY
CONTENT-DISPOSITION:ATTACHMENT;FILENAME="COS960.zip"
data
--SIMPLE BOUNDARY--
Any ideas? |
|
Back to top |
|
|
raghunathns
Active User
Joined: 08 Dec 2005 Posts: 127 Location: rochester
|
|
|
|
try this format...
%XMITIP (a@a.COM) -
SUBJECT 'test' -
CC (B@b.COM) -
FROM c@c.COM -
MSGDS 'userid.msg' -
FILE 'user.file1.data' -
FILENAME a.ZIP -
FORMAT ZIP/a.txt |
|
Back to top |
|
|
kulreshma
New User
Joined: 11 May 2007 Posts: 4 Location: Mumbai
|
|
|
|
Please help me in zipping the file on mainframe, i dont knw how to do it. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
paray2x
New User
Joined: 28 Dec 2005 Posts: 21
|
|
Back to top |
|
|
|