Page 1 of 1

SMTP not working

PostPosted: Mon Sep 19, 2011 11:45 am
by Nandesh
Hi,

The below JCL is not working and triggering an email.

//IEBGENER EXEC PGM=IEBGENER                         
//SYSIN DD DUMMY                                     
//SYSPRINT DD SYSOUT=*                               
//SYSUT2 DD SYSOUT=(9,SMTP)                                 
//SYSUT1 DD *                                       
MAIL FROM: MAINFRAME@SAD0ST                         
RCPT TO: RAMAANARP@IN.IBM.COM                       
DATA                                                 
FROM: MAINFRAME@SAD0ST                               
TO: RAMAANARP@IN.IBM.COM                             
SUBJECT:TEST                                         
MIME-VERSION: 1.0                                   
CONTENT-TYPE: TEXT/PLAIN                             
CONTENT-DISPOSITION: ATTACHMENT; FILENAME=FILE.TXT   
//       DD DSN=OSMDEV.FTP.INPUT,DISP=SHR           


Please help me.

Thanks & Regards,
Nandesh.R

Re: SMTP not working

PostPosted: Mon Sep 19, 2011 4:01 pm
by MrSpock
It would be nice if you could clarify what's "not working" about it.

Anyway, as far as the MIME content, I don't see any BOUNDRY text in your message. If your intent is to send an email with an attachment, then it needs to look more like this:

all-other-mainframe-topics/email-attachment-t6066.html#p25694

Re: SMTP not working

PostPosted: Mon Sep 19, 2011 11:03 pm
by dick scherrer
Hello and welcome to the forum,

Possibly the biggesst waste of time on the forum is posting "It didn't work".

To get help you typically need to post what happened (diagnostic error, abend, etc) along with the submitted jcl and control statements. The less useful info you post initially means multiple interactions just to have us understand what your are facing.

What is the content of this dataset (OSMDEV.FTP.INPUT)?