×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Here is a real simple mailer program:
AS/400 SMTP Mail Sender Utility
http://www-03.ibm.com/servers/enable/site/porting/iseries/overview/examples/smtp.txt
*/
/**********************************************************************/
/* */
/* Name: mail.c */
/* */
/* Description: This program is bare SMTP client- reads from stdin */
/* It connects to 'mail' or a specified SMTP server. */
/* This source is self-contained and only includes */
/* system header files. */
/* */
/* To compile this program, issue the following CL */
/* command. (Assuming the correct source location) */
/* CRTBNDC PGM(UTILS/MAIL) SRCSTMF('/src/mail.c') */
/* */
/* Create a link in the IFS to use this program with */
/* Qshell using the following command: */
/* ln -s /qsys.lib/utils.lib/mail.pgm /usr/bin/mail */
/* */
/* Usage: mail user[@hostname] [SMTP server] */
/* Note: default SMTP server is 'mail' \n"); */
/* */
/* This is particularly useful with Qshell: */
/* mail somebody@xxxxxxxxxxxxx < test.txt */
/* */
/* If compiled with DEFINE(DEBUG) you will see */
/* the SMTP responses from the server. */
/* */
/**********************************************************************/
Scott Klement said the following on 8/1/2007 12:53 PM:
Hi Jim,
At V5R4, is sendmail available to perl scripts on the iSeries?
As an Amazon Associate we earn from qualifying purchases.