Doesn't the last --MYDELIM" need to be coded as: --MYDELIM--

Roberto


On Wed, Aug 20, 2014 at 1:11 PM, Sri h Kolusu <[email protected]> wrote:

> Len,
>
> Assuming that you have the started task SMTP on your system, then you can
> use the following JCL to send a file from mainframe as an attachment. You
> can check if SMTP is up and running in SDSF. Go to SDSF and type PRE SMTP*
> and you should be able to find a started task. If you see any thing with
> that, then SMTP is running and your shop is configured to SMTP.
>
> //SENDMAIL EXEC PGM=IEBGENER
> //SYSIN    DD DUMMY
> //SYSPRINT DD SYSOUT=*
> //SYSUDUMP DD SYSOUT=*
> //SYSUT2   DD SYSOUT=(A,SMTP)
> //SYSUT1   DD *
> HELO SYSA
> MAIL FROM:<[email protected]>
> RCPT TO:<[email protected]>
> DATA
> FROM:      <[email protected]>
> TO:         [email protected]
> SUBJECT: file
> MIME-VERSION: 1.0
> CONTENT-TYPE: MULTIPART/MIXED;
> BOUNDARY=  "MYDELIM"
> THIS MESSAGE IS IN MIME FORMAT
> --MYDELIM
> Content-Disposition: attachment; filename="YOUR ATTACH FILE.txt"
> CONTENT-TYPE: TEXT/HTML
>  <PRE> <FONT FACE="ARIAL" SIZE=1>
> //          DD DISP=SHR,DSN=YOUR.input FB 80 byte file to sent as
> attachment
> // DD *
> --MYDELIM
> .
> quit
> //*
>
> Thanks,
> Kolusu
>
> IBM Mainframe Discussion List <[email protected]> wrote on
> 08/20/2014 09:34:03 AM:
>
> > From: Leonard Sasso <[email protected]>
> > To: [email protected]
> > Date: 08/20/2014 09:35 AM
> > Subject: Question: Possible to send email, with an attachment from
> > the Mainframe?
> > Sent by: IBM Mainframe Discussion List <[email protected]>
> >
> > We are able to send email from our mainframe (z/OS 1.13).  Is it
> possible
> > to send an email with an attachment, from our mainframe?
> >
> >
> >
> > Thank You.
> >
> > Len Sasso
> > RDC Applications Management - Professional: System Adminstrator
> > Backup QMR - Production Operations
> > CSC
> >
> > Vacation  Alert: ?
> >
> > 327 Columbia TPKE, Rensselaer NY 12144
> > NES  | t: 518.257-4209 | m: 518-894-0879 | f: 257-4300 | [email protected]
> |
> > www.csc.com
> >
> >
> > This is a PRIVATE message. If you are not the intended recipient, please
>
> > delete without copying and kindly advise us by e-mail of the mistake in
> > delivery. NOTE: Regardless of content, this e-mail shall not operate to
> > bind CSC to any order or other contract unless pursuant to explicit
> > written agreement or government initiative expressly permitting the use
> of
> > e-mail for such purpose.
> >
> > ----------------------------------------------------------------------
> > 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
>



-- 

"There are 10 types of people in the world; those that understand
binary and those that don't"

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to