Skip to main content  
  Easy400   |       IBM System i home   |   RSS feed
Main utilities
5250 utility
Windows utility
Service program
Sample code
CGI support


"MIME & Mail" provides a pretty large number of commands. The following is a quick summary.

Important note on commands
In order to be properly executed, all the following commands need the MMAIL library be in the job library list.

1. "Setup" commands
2. "MIME file" commands
3. Miscellaneous commands

Most of "setup" commands are used during the installation phase of MIME & Mail. However, you may use them also after installation to change some of the settings.
    This command, with command WRKMDTBC allows to automatically send blank copies of any message to some "blind" recipients. This allows to maintain a full log out outgoing messages. See
    this page.
    Some functions of MIME & Mail cannot be properly executed if the job CCSID is 65535. During these functions, MIME & Mail needs to temporarily change the job CCSID to a value different from 65535.
    If the system value of the system is 65535, this command allows to specify what is the value to be assigned for this temporary CCSID.
    Use this command to select from a list the default character set to be used by MMAIL.
    Recompiles and recreates the service programs and all the programs.
    Re-creates all commands.
    Re-creates service program MMAIL/SENDMAIL and optionally re-binds all programs in library MMAIL.
    Allows to duplicate library MMAIL. There is no limit to the number of such duplicates. A duplicate MMAIL library allows to test a new MMAIL version while on the same box the production jobs still work with a previous version of library MMAIL. For details, see this page.
    Defines a default message body for commands EMLSAV, EMLSTMF, EMLSPL, EMLSPL2, STREMLSPLF, STREMLSPL2. Main utilities.
    MIME & Mail documentation (the pages you are reading now) are written in HTML. This command adds the related (Original or Apache) HTTP directives to an HTTP instance of your choice.
    This command creates the environment needed by IBM Infoprint Server for iSeries, 5722-IP1 to convert spool files to PDFs through the SENDMAIL service program. For information about Infoprint Server, see this page.
    Installs command zip and unzip for QPASE and QSHELL. This command is used during MMAIL installation, but can also been run aside.
    If your IBM System i is connected to the Internet and library HTTPAPI is installed, at given points a check is made to find out whether a more recent MMAIL release is available.
    If so, a message is sent to the user profile running MMAIL. This check is performed every 15 days for each given MMAIL user.
    You may run command MMAIL/NORLSINFO to suppress these warning messages.
    This command provides a text to be used for all the e-mail messages with no subject.
    E-mail messages with no subject are usually assigned a higher SPAM score and therefore undergo a higher risk of not been delivered.
    This command must be run from a *SECADM user profile. It provides user profiles QTMHHTTP and QTMHHTP1 with authorities over each other. It is needed whenever CGI's want to use the spool file conversion provided by INFOPRINT.
    Re-binds MMAIL programs in a given library or through MMAIL library and cloned libraries.
    See MMAIL update dependencies.
    Recompiles and recreates the service programs and all the programs in a user-specified MMAIL library.
    E-mail messages with sensitivity "confidential" display a special warning in their titles. Use this command to customize this warning.
    This command sets the library environment needed by CGI to run SENDMAIL subprocedures. See this page.
    Specifies the number of milliseconds (100 to 9000) to wait between to consecutive outgoing messages.
    Populates a user development library with the objects needed to create and run MMAIL-based programs:
    • duplicates of MMAIL service programs
    • duplicates of MMAIL binding directories
    • duplicates of MMAIL/QRPGLESRC members used for /COPY:
      • HSPECS - H specifications
      • HSPECSBND - H specification for binding directories
      • PROTOTYPEB - CGIDEV2 procedure prototypes
      • MAILPROTO - MMAIL procedure prototypes
      • VARIABLES3 - CGI programs common variables
      • USEC - Common Structure for API Error Code Parameter
    The following is an example of the beginning of an MMAIL-based ILE-RPG program in library mylib:
     /copy MYLIB/qrpglesrc,hspecs
     /copy MYLIB/qrpglesrc,hspecsbnd
    Ffilespec  if   e             disk
     /copy MYLIB/qrpglesrc,prototypeb
     /copy MYLIB/qrpglesrc,mailproto
     /copy MYLIB/qrpglesrc,variables3
     /copy MYLIB/qrpglesrc,usec
    By using SETMAILLIB command, your new MMAIL-based programs are not linked to MMAIL service programs, and you have no impact when installing a new MMAIL release. See also Development libraries in the Introduction.

    Should you, by any chance, experience that - after installing a new version of library MMAIL - programs in library mylib display a "service program signature" error, just run the following:

       addlible mmail
       mmail/rebind mylib
    Use this command to test whether an e-mail address is validated as OK from subprocedure VLDEMAIL() of service program MMAIL/SENDMAIL.
    Converts an *SCS or an *AFPDS spool file to a PDF stream file. See Main utilities.
    Allows to change the CCSID to all jobs with a given (generic) name and a given status.
    Clears a data queue.
    Compares two stream files, stops on the first mismatch, provide a detail report on mismatch.
  • CPYSPLFPDF Converts an *SCS or *AFPDS spool file to a stream file PDF. It requires at least V7R1. It is part of the Main utilities.
    Converts a *SCS spool file to PDF through the Orati-Systems IPDF free utility, see this page.
    Creates the V6R1 programs needed to support the Spooled File Actions.
  • CVTSPLSTMF Converts an *SCS, *IPDS, *LINE, or *AFPDSLINE spool file to a stream file. Text, HTML, and PDF conversions supported. It is part of the Main utilities.
    Converts an *SCS or an *AFPDS spool file to a PDF stream file. See Main utilities.
    Allows to select the favorite tool for converting spool files to PDF's. See Main utilities.
    Provides detail information for each section (body and attachments) of a message stream file.
    Enables the Spooled File Actions.
    Copies a database file member to a stream file, see this page.
    This command issues a screen where you can ask for the IP address of a given DNS host name.
    Note: Program MMAIL/GETDSNIP -called from this command- in order to find the IP address of a given DNS name, calls procedure CvtDnsToIP() of service program MMAIL/SOCKETMAIL. This procedure receives a DNS name and returns an IP address. The prototype of this procedure is documented in member YYYPROTO of MMAIL/QRPGLESRC file.
    It's a more granular utility than system command WRKSPLF.
    See this page.
    Creates parameter templates for command CSVIPDF/CREATEIPDF, see this page.
    Reads a given IFS directory and its subdirectories. A database file output (QTEMP/LISTDIR) is provided.
    Displays information about the release of MIME & Mail.
    Creates parameter templates for command AFPTOOL/AFPTOOL, see this page.
    Creates parameter templates for command CVTSPLFPDF, see this page.
    Creates parameter templates for command CVTSPLSTMF, see this page.
    Creates parameter templates for command SPLTOOL/SPL2STMF, see this page.
    Converts a spool file to PDF, using the conversion tool previously selected with command CVTTOPDF.
    Creates parameter templates for commands CVTSPLSTMF, CVTSPLFPDF and CREATEIPDF, see this page.
    Converts a stream file to a different CCSID stream file.
    Allows to unzip zipped (compressed) stream files.
    Allows to associate distribution lists and IFS directories for e-mailing PDFs through command STRMONIFS.
    Allows to check out the Spooled File Actions and to remove the ones not needed.
    Allows to associate e-mail addresses to system user profiles. Very convenient when command MNGSPLF is used or when Spooled File Actions are installed.
  • ZIP
    Allows to compress stream files into a .zip stream file.