SMTP not working



Post anything related to mainframes (IBM & UNISYS) if not fit in any of the above categories

SMTP not working

Postby Nandesh » Mon Sep 19, 2011 11:45 am

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
Nandesh
 
Posts: 4
Joined: Sun Aug 14, 2011 7:20 pm
Has thanked: 0 time
Been thanked: 0 time

Re: SMTP not working

Postby MrSpock » Mon Sep 19, 2011 4:01 pm

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
User avatar
MrSpock
Global moderator
 
Posts: 807
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: SMTP not working

Postby dick scherrer » Mon Sep 19, 2011 11:03 pm

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)?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to All other Mainframe Topics

 


  • Related topics
    Replies
    Views
    Last post