Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to send multiple attachments in email

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
dilipalavane

New User


Joined: 21 Aug 2007
Posts: 3
Location: india

PostPosted: Fri Feb 15, 2008 6:33 pm    Post subject: How to send multiple attachments in email
Reply with quote

Hi,

I want to send two files as attachment in email.
I am using IEBGENER as below:

//STEP06 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSUT2 DD SYSOUT=(A,SMTP)
//SYSUT1 DD DISP=SHR,DSN=MAIL.PARMS.INPUT.FILE
// DD DISP=SHR,DSN=FILE1.TO.SEND

This is working fine for one file as an attachment. I want to send another file e.g. FILE2.TO.SEND.
Can anybody tell me how to send multiple attachment using one step.

-Dilip.
Back to top
View user's profile Send private message

ram prasad

New User


Joined: 28 May 2007
Posts: 17
Location: india

PostPosted: Mon Feb 18, 2008 10:17 am    Post subject:
Reply with quote

HI, U can get two attachment in a sigle mail by using like this

//STEP06 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSUT2 DD SYSOUT=(A,SMTP)
//SYSUT1 DD DISP=SHR,DSN=MAIL.PARMS.INPUT.FILE
// DD DISP=SHR,DSN=FILE1.TO.SEND
//SYSUT1 DD DISP=SHR,DSN=MAIL.PARMS.INPUT.FILE2
// DD DISP=SHR,DSN=FILE2.TO.SEND

note : datasets must me in same format
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Wed Feb 20, 2008 5:28 am    Post subject: Reply to: How to send multiple attachments in email
Reply with quote

Dilip,

This has already been discussed and i remember once answering on this topic. Do search the forums.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed Feb 20, 2008 5:46 am    Post subject:
Reply with quote

Ram,
how can you have 2 SYSUT1 DD statements in the one STEP ?

Only the first one will be actioned.


Gerry
Back to top
View user's profile Send private message
ram prasad

New User


Joined: 28 May 2007
Posts: 17
Location: india

PostPosted: Wed Feb 20, 2008 9:35 am    Post subject: Reply to: How to send multiple attachments in email
Reply with quote

sorry gerry,
please find the correct one

//STEP06 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSUT2 DD SYSOUT=(A,SMTP)
//SYSUT1 DD DISP=SHR,DSN=MAIL.PARMS.INPUT.FILE
// DD DISP=SHR,DSN=FILE1.TO.SEND
// DD DISP=SHR,DSN=MAIL.PARMS.INPUT.FILE2
// DD DISP=SHR,DSN=FILE2.TO.SEND
Back to top
View user's profile Send private message
dilipalavane

New User


Joined: 21 Aug 2007
Posts: 3
Location: india

PostPosted: Fri Feb 22, 2008 4:40 pm    Post subject:
Reply with quote

Ram,
The solution given by you do not work as i have already tried it. In this case three files(last three) get copied into one attachment.

In file 'MAIL.PARMS.INPUT.FILE' i am specifying following parameters:

HELO TESTING
MAIL FROM:<sender@abcd.com>
RCPT TO:<receiver@abcd.com>
DATA
FROM: <sender@abcd.com>
TO: <receiver@abcd.com>
SUBJECT: subject
MIME-VERSION: 1.0
CONTENT-TYPE: MULTIPART/MIXED;
CONTENT-DISPOSITION: ATTACHMENT; FILENAME=abcd.TXT
CONTENT-TYPE: TEXT/HTML

Can you tell how to specify parameters above for second attachment in the same mail? Or can we use some different method.

Thanks,
Dilip.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts EMAIL using IEBGENER - SMTP parasmalik20 JCL & VSAM 4 Tue May 23, 2017 12:19 am
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us