Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Send email without SMTP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Send email without SMTP
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: 26
Location: Australia

PostPosted: Tue Nov 19, 2019 10:14 am    Post subject: Reply to: Send email without SMTP
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: 795
Location: The Universe

PostPosted: Tue Nov 19, 2019 6:23 pm    Post subject:
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: 26
Location: Australia

PostPosted: Wed Nov 20, 2019 3:16 am    Post subject: Reply to: Send email without SMTP
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: 795
Location: The Universe

PostPosted: Wed Nov 20, 2019 5:36 am    Post subject:
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: 26
Location: Australia

PostPosted: Wed Nov 20, 2019 7:04 am    Post subject: Reply to: Send email without SMTP
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Send text at cursor position on an IS... Domenic Ailati CLIST & REXX 10 Sun Jun 02, 2019 7:34 am
No new posts Unable to send mail via CSSMTP to GMA... danik56 JCL & VSAM 2 Thu Apr 11, 2019 10:02 pm
No new posts Using the SAS module to email mainfra... elixir1986 JCL & VSAM 3 Thu Mar 14, 2019 10:04 pm
No new posts JCL to send email along with formated... wik123 JCL & VSAM 5 Thu Aug 09, 2018 9:48 am
No new posts Send data from a CICS TS program to M... spiThingy CICS 2 Wed Aug 08, 2018 8:58 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us