IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Send email without SMTP


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Kaliragavendran

New User


Joined: 04 Sep 2019
Posts: 3
Location: India

PostPosted: Thu Sep 05, 2019 10:55 am
Reply with quote

Hi

Can someone help me on how to send email without smtp...

I have using smtp for all our projects..but i have client and they dont have smtp or SAS to send email from mainframe to external ..


Thanks
Back to top
View user's profile Send private message
hankoerlemans

New User


Joined: 25 Jan 2018
Posts: 57
Location: Australia

PostPosted: Tue Nov 19, 2019 10:14 am
Reply with quote

Do you have connectivity from your z-system to an internal mail relay ?
If so you have basic SMTP using the JES2 spool to route to a relay.
Look at the z/OS Communications Server manuals
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Tue Nov 19, 2019 6:23 pm
Reply with quote

I think you also need z/OS 2.4 (which most shops do not have running in production yet) for this and you also need to setup JES2 to talk to TCPIP, which is non trivial.
Back to top
View user's profile Send private message
hankoerlemans

New User


Joined: 25 Jan 2018
Posts: 57
Location: Australia

PostPosted: Wed Nov 20, 2019 3:16 am
Reply with quote

RTFM buddy. There isn't a TCPIP connection from JES at all.
I have been using the clunky SMTP relay to send email via JES2 for years.
Ever since it was made available back whenever....
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Wed Nov 20, 2019 5:36 am
Reply with quote

I'll be the first to admit I'm not real current on JES2. However, note that Kaliragavendran does not want even the basic rather clunky SMTP, which means the JES2 hack to ship something to SMTP (about which I know nothing) will not work, which brings us back to z/OS 2.4 and configuring JES2 to talk to TCPIP.
Back to top
View user's profile Send private message
hankoerlemans

New User


Joined: 25 Jan 2018
Posts: 57
Location: Australia

PostPosted: Wed Nov 20, 2019 7:04 am
Reply with quote

Are you referring to the discussion elsewhere about sockets ?
At great expense to the management ....... icon_biggrin.gif

My system is z/OS 2.3 . I did this on 2.1 as well although some of the specifics have changed over time. Moved the code into USS for one thing.

See SEZAINST(CSSMTP) for the STC JCL.

Some bits from the cssmtp.conf file

Code:

# ------------------------------------------------------             
# The ExtWrtName statement specifies the external writer name used by
# the CSSMTP application for selection criteria when interfacing with
# the JES2 or JES3 subsystems.                                       
                                                                     
ExtWrtName  SMTP                     # the external writer name       

                                                         
TargetServer                                             
{                                                         
   TargetIp      my.site.smtp.relay    # target ip address     
}


my.site.smtp.relay needs to be pingable from the z-box.
And of course there can't be other mysterious blockers on your relays which I know nothing about.

then


Code:

/*REXX*/                                                         
trace r                                                         
domfr = 'hcl.com'                                               
domto = 'gmail.com'                                             
noden = 'nodename' /* See your jes config deck for the value */                 
mailfr = 'mywork.email' || '@' || domfr                       
mailto = 'myprivate.email' || '@' || domto                       
  /* Issue SMTP message via SMTP batch interface */             
  queue "helo "domfrm                                           
  queue "mail from:<"mailfr">"                                   
  queue "rcpt to:<"mailto">"                                     
  queue "data"                                                   
  queue "Date: " || date('N') || " " || time('C')               
  queue "From:<"mailfr">"                                       
  queue "To:<"mailto">"                                         
  queue "Subject: Batch job has abended"                         
  queue " "                                                     
  queue "If you set up the text properly for this message"       
  queue "then you can use this code as a FA notify exit"         
  queue " "                                                     
  queue "Regards Hank Oerlemans, FA Support"                     
  queue "."                                                     
  queue ""                                                       
  "ALLOC DD(DD1) SYSOUT(B) DEST("noden".SMTP)"     /* SMTP needs to match the wtr name in the .conf file */             
  address mvs "EXECIO * DISKW DD1 (FINIS"                       
  "FREE DD(DD1)"                                                 
  exit                                                           


No socket programming at all.
You can just write boring report files in the language of your choice.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts REXX to send an email in Mainframe wi... CLIST & REXX 3
No new posts REXX to send an email in Mainframe CLIST & REXX 4
No new posts help send file AFT CONTROLM EM IBM Tools 0
No new posts how to send 10 rows at a time to output CICS 2
No new posts interactive cics program using CICS s... CICS 5
Search our Forums:

Back to Top