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


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                       
FROM: MAINFRAME@SAD0ST                               
TO: RAMAANARP@IN.IBM.COM                             
MIME-VERSION: 1.0                                   
CONTENT-TYPE: TEXT/PLAIN                             
//       DD DSN=OSMDEV.FTP.INPUT,DISP=SHR           

Please help me.

Thanks & Regards,
Posts: 4
Joined: Sun Aug 14, 2011 7:20 pm
Has thanked: 0 time
Been thanked: 0 time

Re: SMTP not working


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:

User avatar
Global moderator
Posts: 811
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 2 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,
User avatar
dick scherrer
Global moderator
Posts: 6308
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 90 times

Return to All other Mainframe Topics


  • Related topics
    Last post