Skip to main content  
  Easy400   |       iSeries home   |   RSS feed
Freeware
 
Introduction
5250 utility
Windows utility
Other utilities
Service program
Sample code
Commands
CGI support
FAQ
WEBMail
Self maintenance
 
Download
 
 

 
Search   
Commands

"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 (or its clone library) be in the job library list.

1. Setup commands
2. MIME files commands
3. Miscellaneous commands


"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.
  • CCSID
    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.
  • COMPILE
    Recompiles and recreates the two service programs and all the other programs.
  • CRTCMDS
    Re-creates all commands.
  • CRTMMLIB
    Allows to generate another library (clone) similar to library MMAIL. There is no limit to the number of such clones. Each clone behaves exactly as library MMAIL. The advantage of having clones, is that each clone may be customized by programmers to fit installation needs and maintains its properties independently from any subsequent update to library MMAIL. For details, see this page.
  • CRTMSRVPGM
    Re-creates service program MMAIL/SENDMAIL and optionally re-binds all programs in library MMAIL.
  • HTTPCFG
    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.
  • INFOPRINT
    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.
  • QTMHHTP1
    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.
  • REBIND
    Re-binds MMAIL programs in a given library or through MMAIL library and cloned libraries.
  • SETCONFID
    E-mail messages with sensitivity "confidential" display a special warning in their titles. Use this command to customize this warning.
  • SETCGILIB
    This command sets the library environment needed by CGI to run SENDMAIL subprocedures. See this page.
  • SETEMDELAY
    Specifies the number of seconds (1 to 9) to wait between to consecutive outgoing messages.
  • SETMAILLIB
    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
  • TIMEZFMT
    Use this command to select the format of the time zone in the DATE headers generated for the MIME messages. The following time zone formats are supported:
    UT Coordinated Universal Time
    GMT Greenwich Meridian time (alias of UT)
    -/+hhmm offset from Coordinated Universal Time (see system value QUTCOFFSET)
    local time zone as computed from system value QUTCOFFSET
  • WRKADDR
    Allows to maintain the "address book" used by the 5250 utility and by command STREMLSPLF.
  • WRKGRP
    Allows to maintain the "groups" (distribution lists) used by the 5250 utility and by command STREMLSPLF.


"MIME file" commands are commands used for creating, managing, and e-mailing MIME files. In several cases (see for instance all the EML... commands), the end user does not even need to know what a MIME file is.
     
  • CRTMIME.
    Creates a MIME file without the "send" (sender, addressees) data.
    Command WRKMIME allows to work with these files.
    These MIME files can then be e-mailed with command SNDMIME.
    It is part of the 5250 utility.  
  • CUSTMAIL
    Runs a sample case where customized letters are e-mailed. It is part of the 5250 utility.  
  • EMLMSG
    E-mails a simple message. It is part of the Other utilities.  
  • EMLSAVF
    E-mails a save file. It is part of the Other utilities.  
  • EMLSPL
    E-mails a spool file. Optionally, the spool file can be converted to a PDF. It is part of the Other utilities.  
  • EMLSPLX
    Similar to EMLSPL, but also allows to select the desired PDF conversion utility. It is part of the Other utilities.  
  • EMLSRCM
    E-mails a source member. It is part of the Other utilities.  
  • EMLSTMF
    E-mails a stream file. It is part of the Other utilities.  
  • EMLHTML
    E-mails an HTML stream file. It is part of the Other utilities.  
  • ENDEMLSPLF
    Ends the automated e-mailing of spool files started with command STREMLSPLF.  
  • MIMEMENU
    Is the entry point to the 5250 utility.  
  • RESEND
    Resends e-mail messages that have failed to be sent. It is part of the Other utilities.
  • SENDMIME.
    Allows to mail -through a single MIME message- a combination of different types of objects:
    • IFS stream files
    • Database files
    • Source file members
    • Spool files
    • Spool files converted to PDF
    Up to 100 different pieces (objects) can be sent for each type of object.
    The MIME message can be sent up to 100 receivers.
    It is part of the Other utilities.
  • SNDMIME.
    E-mails a MIME file created with command CRTMIME. It is part of the 5250 utility.
  • STREMLSPLF.
    Starts the automated e-mailing of spool files. User-specified spool files from one or several output queues - as soon as they become ready - are e-mailed to different distribution lists according to their spool file names. Spool files can optionally be converted to PDF's. Execution is submitted to batch. A log of the spool files sent is maintained on file qgpl/spllog
    It is part of the Other utilities.
  • WRKMIME
    Allows to work with the MIME files created by command CRTMIME. It is part of the 5250 utility.


     
  • ADDHYPERL
    Adds hyperlinks to the texts of a stream file.
    Hyperlinks are generated for texts containing URLs (http://...) and for texts containing e-mail addresses.
    This command should be used only for HTML stream files.  
  • CHGJBCCSID
    Allows to change the CCSID to all jobs with a given (generic) name and a given status.  
  • CLRDTAQ
    Clears a data queue.  
  • CVTSPLSTMF
    Converts an SCS spool file to a stream file. Text, HTML, and PDF conversions supported. It is part of the Other utilities.
  • CVTSPLFPDF
    Converts an SCS or an AFP spool file to a PDF stream file. See Other utilities.  
  • AFPTOOL/AFPTOOL
    Converts an SCS or an AFP spool file to a PDF stream file. See Other utilities.  
  • CVTTOPDF
    Allows to select the favorite tool for converting spool files to PDF's. See Other utilities.  
  • READDIR
    Reads a given IFS directory and its subdirectories. A database file output (QTEMP/LISTDIR) is provided.  
  • RELEASED
    Displays information about the release of MIME & Mail.  
  • SETSPLFPDF
    Sets PDF conversion parameters for command CVTSPLFPDF.
    These settings are used by any subsequent CVTSPLFPDF command within the same job.
    Use it before EML... commands, when PDF spool file conversion is requested.  
  • SETSPLSTMF
    Sets PDF conversion parameters for command CVTSPLSTMF.
    These settings are used by any subsequent CVTSPLSTMF command within the same job.
    Use it before EML... commands, when PDF spool file conversion is requested.  
  • SPLFTOPDF
    Converts a spool file to PDF, using the conversion tool previously selected with command CVTTOPDF.



    Contact