Nagi needs to write a code on his iSeries 870 to send a notifications to his e-mail, such as server rebooting, jobs not started or need reply, etc. He's a Windows guy, and doesn't know where to start. Can someone help him with the code and possibly send him steps on how to write it and where and which LIB it will reside, as well as the CL commands?
-- Michelle Davidson, editor, Search400.com
Software/Hardware used:
ASKED:
September 26, 2005 2:14 PM
UPDATED:
November 14, 2009 11:33 AM
No offense, but having a “Windows” person assigned to this is nuts. Trying to grasp why the SNDDST command, for example, can be useful requires knowledge of obsolete functions that shouldn’t even be used. The actual SMTP functions are what should be used. Most iSeries programmers can’t even say why SNDDST can be such a problem.
Unfortunately, it’s most probable that the iSeries has never had any e-mail client (for SMTP) installed. Just like a Windows system, if there is no e-mail client on the machine, then sending e-mail can be a bit of a problem. Unless you’re a C programmer experienced with sockets or maybe a decent Java programmer… (COBOL? RPG?)
When nothing else is available, SNDDST can be used. That assumes that the SNA/SMTP gateway is correctly configured and active and that SMTP is correctly configured, including external routing attributes, and that the SMTP server is started. Setting up a mail server is not trivial. Setting one up and talking through it with SNA functions is tricky enough that the clear majority of iSeries developers don’t do it. Those that do get it done will usually resist tinkering with it.
How many Windows developers enjoy installing and configuring e-mail servers on Windows? How often is it done on Windows by iSeries (or Unix/Linux or Mac) developers?
Tom