|
Freeware
|
| |
|
Introduction |
|
5250 utility |
|
Windows utility |
| Other utilities |
|
Infoprint Server |
|
Service program |
|
Sample code |
|
Commands |
|
CGI support |
|
FAQ |
|
WEBMail |
|
Self maintenance |
| |
| Download |
| |
|
|
|
|
|  |
|
|
iSeries MIME & Mail
Other utilities
|
|
Command MMAIL/EMLMSG
allows to e-mail the text from a source file member as a plain message
to a maximum of 50 receivers.
Command MMAIL/EMLMSG
E-mail simple message (EMLMSG)
Type choices, press Enter.
'Subject' . . . . . . . . . . . ___________________________________________
____________________________________
______________________________
'Sender's name' . . . . . . . . ______________________________
'Sender's e-mail address' . . . ______________________________
Recipients . . . . . . . . . . . ____ *TO, *CC, *BCC
'name' . . . . . . . . . . . . _____________________________________
'e-mail address' . . . . . . . _____________________________________
+ for more values ____
Text source file . . . . . . . . *DFT____ Name, *DFT
Library . . . . . . . . . . . *LIBL____ Name, *LIBL, *CURLIB
Text source member . . . . . . . ________ Name
Importance . . . . . . . . . . . *MED *LOW, *MED, *HIG
Priority . . . . . . . . . . . . *NRM *NUR, *NRM, *URG
Sensitivity . . . . . . . . . . *NRM *NRM, *PRS, *PRV, *CNF
'Reply-to e-mail address' . . . *FROMADDR______________________________
Return receipt . . . . . . . . . *NO_ *NO, *YES
Save directory . . . . . . . . . /mmail/history__________________________
Preformatted message body . . . N N, Y
|
|
|
Subject: Subject of the message
Sender's name: Name of the person sending the message (see Note 3 below)
Sender's address: E-mail address of the person sending the message (see Note 3 below)
Recipients: up to 50 recipients can be specified; for each recipient the following
must be given:
- destination type: *TO, *CC, or *BCC
- recipient name, within quotes
- e-mail address, within quotes
Text source file: qualified name of the source file with
the member containing the text to be e-mailed. If '*DFT' specified, library name and
text source member name need not be specified: a QTEMP source file
is generated and a default member name is assigned.
*DFT is not supported in batch execution.
Text source member: name of the source member containing
the text to be sent with the message.
Importance:
*LOW=low, *MED=medium, *HIG=high
Priority:
*NUR=non-urgent, *NRM=normal, *URG=urgent
Sensitivity:
*NRM=normal, *PRS=personal, *PRV=private, *CNF=confidential
(use command mmail/setconfid
to set the confidentiality statement).
Reply-to e-mail address: E-mail address of the person to receive reply messages, if different from the sender
Return receipt: whether a receipt should be returned to the
sender when the recipient opens the message.
Save directory: IFS directory to contain a copy of the
e-mailed MIME file, or *NONE .
Preformatted message body: Whether the message body should be presented as preformatted text.
A preformatted text is a text where all characters (including spaces) have the same width.
Examples are texts including text tables (not html tables, of course).
Example:
MMAIL/EMLMSG SUBJECT('Announcement of a new software') FROMNAME('John Evans')
FROMADDR('jevans@mail.com') TO('dooley@superstar.com'/'Tom Dooley'/*TO)
TXTF(QGPL/MESSAGES) TXTMBR(MSG705) RECEIPT(*YES)
Note 1. This command can run both in the interactive and in the
batch environment.
Note 2. When running interactive, the source member is edited
prior to sending the message.
Note 3- Fetching sender's name and e-mail from the system
distribution directory
If the current user profile is enrolled in the system
distribution directory (you may use command WRKDIRE to check it out)
and
its directory entry specifies a full name and an e-mail address
(use F19 and check fields titled "SMTP user ID" and "SMTP domain"),
then the sender's name and e-mail address are automatically fetched
into command parameters FROMNAME and FROMEMAIL when the command
is prompted.
(Command WRKNAMSTP, alias table type = system, provides
another way to display / maintain e-mail addresses)
If the command is executed without prompting, to obtain the same
you must specify FROMNAME(*DIRENT) FROMEMAIL(*DIRENT).
In this case, if the required information cannot be retrieved
from the system distribution directory entry for the current
user profile, an escape message is issued.
Example:
MMAIL/EMLMSG SUBJECT('Announcement of a new software') FROMNAME(*DIRENT)
FROMADDR(*DIRENT) TO('dooley@superstar.com'/'Tom Dooley'/*TO)
TXTF(QGPL/MESSAGES) TXTMBR(MSG705) RECEIPT(*YES)
2. E-mail source members
Command MMAIL/EMLSRCM
allows to e-mail a message attaching up to 30 source members.
Optionally, a message body may be built from another text source
member.
The message can be e-mailed up to 50 receivers.
|
|
Command MMAIL/EMLSRCM
E-mail source members (EMLSRCM)
Type choices, press Enter.
'Subject' . . . . . . . . . . . ____________________________________________
____________________________________
______________________________
'Sender's name' . . . . . . . . ______________________________
'Sender's e-mail address' . . . ______________________________
Recipients . . . . . . . . . . . ____ *TO, *CC, *BCC
'name' . . . . . . . . . . . . _____________________________________
'e-mail address' . . . . . . . _____________________________________
+ for more values ____
Source member to be attached . . __________ Name
source file . . . . . . . . . __________ Name
library . . . . . . . . . . . *LIBL_____ Name, *LIBL, *CURLIB
+ for more values __________
Source mbr for message body . . *NONE_____ Name, *DFT, *NONE
source file . . . . . . . . . __________ Name
library . . . . . . . . . . . *LIBL_____ Name, *LIBL, *CURLIB
Edit message body src mbr . . . *NO_ *NO, *YES
Importance . . . . . . . . . . . *MED *LOW, *MED, *HIG
Priority . . . . . . . . . . . . *NRM *NUR, *NRM, *URG
Sensitivity . . . . . . . . . . *NRM *NRM, *PRS, *PRV, *CNF
'Reply-to e-mail address' . . . *FROMADDR______________________________
Return receipt . . . . . . . . . *NO_ *NO, *YES
Save directory . . . . . . . . . /mmail/history__________________________
Preformatted message body . . . N N, Y
|
|
|
Subject: Subject of the message
Sender's name: Name of the person sending the message
Sender's address: E-mail address of the person sending the message
Recipients: up to 50 recipients can be specified; for each recipient the following
must be given:
- destination type: *TO, *CC, or *BCC
- recipient name, within quotes
- e-mail address, within quotes
Source member to be attached: up to 30 attachments can be specified; for each attachment the following
must be given:
- source member name
- source file name
- source library name
Source mbr for message body: member, file, and library name for
the text to become the body of the message.
If *NONE specified, the message will have no body,
just the attachment will be there.
If '*DFT' specified, library name and
text source member name need not be specified: a QTEMP source file
is generated and a default member name is assigned.
*DFT is not supported in batch execution.
Edit message body src mbr: whether the source member for the message body should be edited
(interactive job only). Editing is performed via STRSEU (if available), otherwise via EDTF.
Importance:
*LOW=low, *MED=medium, *HIG=high
Priority:
*NUR=non-urgent, *NRM=normal, *URG=urgent
Sensitivity:
*NRM=normal, *PRS=personal, *PRV=private, *CNF=confidential
(use command mmail/setconfid
to set the confidentiality statement).
Reply-to e-mail address: E-mail address of the person to receive reply messages, if different from the sender
Return receipt: whether a receipt should be returned to the
sender when the recipient opens the message.
Save directory: IFS directory to contain a copy of the
e-mailed MIME file, or *NONE .
Preformatted message body: Whether the message body should be presented as preformatted text.
A preformatted text is a text where all characters (including spaces) have the same width.
Examples are texts including text tables (not html tables, of course).
Note 1. This command can run both in the interactive and in the
batch environment.
Note 2- Fetching sender's name and e-mail from the system
distribution directory
See Note 3 for command EMLMSG.
Example:
MMAIL/EMLSRCM SUBJECT('Source of command MMAIL/EMLSRCM')
FROMNAME('John Evans') FROMADDR('jevans@mail.com')
TO('dooley@superstar.com'/'Tom Dooley'/*TO)
SRCM(MMAIL/QCMDSRC/EMLSRM)
3. E-mail spool files
Three similar commands are available.
They differ in the way the PDF conversion utility is selected.
- MMAIL/EMLSPL
This command selects the PDF conversion utility defined by command MMAIL/CVTTOPDF,
and lets you define a single name for all the attached PDF's.
- MMAIL/EMLSPL2
This command selects the PDF conversion utility defined by command MMAIL/CVTTOPDF,
and lets you define a different name for each attached PDF.
- MMAIL/EMLSPLX
This command, though defaulting to the PDF conversion utility selected by command MMAIL/CVTTOPDF,
leaves you the freedom to select a different conversion utility.
Besides, when the PDF conversion utility CVTSPLSTMF is selected, it provides all the needed PDF formatting parameters.
A - Command MMAIL/EMLSPL
allows to e-mail a message attaching up to 30 spool files.
A conversion to PDF option is available at single spool file level.
Optionally, a message body may be built from a text source
member.
The message can be e-mailed up to 50 receivers.
|
|
Command MMAIL/EMLSPL
E-mail spool files (EMLSPL)
Type choices, press Enter.
'Subject' . . . . . . . . . . . ____________________________________________
____________________________________
______________________________
'Sender's name' . . . . . . . . ______________________________
'Sender's e-mail address' . . . ______________________________
Recipients . . . . . . . . . . . ____ *TO, *CC, *BCC
'name' . . . . . . . . . . . . _____________________________________
'e-mail address' . . . . . . . _____________________________________
+ for more values ____
Spooled file . . . . . . . . . . __________ Name
Job name . . . . . . . . . . . *CURRENT__ Name, *CURRENT
job user . . . . . . . . . . __________ Name
job number . . . . . . . . . ______ 000000-999999
Spooled file number . . . . . *LAST 1-9999, *ONLY, *LAST
Convert spool file to PDF . . *NO_ *NO, *YES
+ for more values __________
Source mbr for message body . . *NONE_____ Name, *DFT, *NONE
source file . . . . . . . . . __________ Name
library . . . . . . . . . . . *LIBL_____ Name, *LIBL, *CURLIB
Edit message body src mbr . . . *NO_ *NO, *YES
Importance . . . . . . . . . . . *MED *LOW, *MED, *HIG
Priority . . . . . . . . . . . . *NRM *NUR, *NRM, *URG
Sensitivity . . . . . . . . . . *NRM *NRM, *PRS, *PRV, *CNF
'Reply-to e-mail address' . . . *FROMADDR______________________________
Return receipt . . . . . . . . . *NO_ *NO, *YES
Save directory . . . . . . . . . '/mmail/history'________________________
PDF save directory . . . . . . . '/mmail/temp'___________________________
PDF name . . . . . . . . . . . . 'sample.pdf'____________________________
Preformatted message body . . . N N, Y
|
|
|
Subject: Subject of the message
Sender's name: Name of the person sending the message
Sender's address: E-mail address of the person sending the message
Recipients: up to 50 recipients can be specified; for each recipient the following
must be given:
- destination type: *TO, *CC, or *BCC
- recipient name, within quotes
- e-mail address, within quotes
Spooled file: up to 30 attachments can be specified; for each attachment the following
must be given:
- spool file name
- qualified job name
- spool file number
- whether the spool file should be converted to PDF before being attached to the message.
Information about conversion of spool files to PDF's is provided later in this page.
The spool_file_to_PDF conversion program used in this process
is the utility selected through command MMAIL/CVTTOPDF.
Note 1- For additional parameters of command CVTSPLSTMF when spool file conversion to PDF is requested,
see Note on CVTSPLSTMF spool file conversion to PDF.
Note 2- If the conversion utility specified by command CVTTOPDF is CVTSPLSTMF (which handles only SCS spool files) and the spool file
type is AFP, then utility CVTSPLFPDF (which handles both SCS and AFP spool files) is used instead.
Note 3- If the conversion utility specified by command CVTTOPDF is the AFP TO PDF TRANSFORM FEATURE,
then utility CVTSPLFPDF is used instead, because the transform feature cannot be used on existing spool files.
Source mbr for message body: member, file, and library name for
the text to become the body of the message.
If *NONE specified, the message will have no body,
just the attachment will be there.
If '*DFT' specified, library name and
text source member name need not be specified: a QTEMP source file
is generated and a default member name is assigned.
*DFT is not supported in batch execution.
Edit message body src mbr: whether the source member for the message body should be edited
(interactive job only). Editing is performed via STRSEU (if available), otherwise via EDTF.
Importance:
*LOW=low, *MED=medium, *HIG=high
Priority:
*NUR=non-urgent, *NRM=normal, *URG=urgent
Sensitivity:
*NRM=normal, *PRS=personal, *PRV=private, *CNF=confidential
(use command mmail/setconfid
to set the confidentiality statement).
Reply-to e-mail address: E-mail address of the person to receive reply messages, if different from the sender
Return receipt: whether a receipt should be returned to the
sender when the recipient opens the message.
Save directory: IFS directory to contain a copy of the
e-mailed MIME file, or *NONE .
PDF save directory: The PDF is deleted after been attached to the MIME file.
However, you may specify an IFS directory where it should be saved before been deleted.
PDF name:
- if you leave the default value *AUTO, all the PDF's are assigned a single computed name
- you may specify a single pdf name of your choice ending with the extension .pdf .
In both cases, the final name of an attached PDF is the assigned name, preceeded by a sequence number.
Preformatted message body: Whether the message body should be presented as preformatted text.
A preformatted text is a text where all characters (including spaces) have the same width.
Examples are texts including text tables (not html tables, of course).
Note 1. This command can run both in the interactive and in the
batch environment.
Note 2- Fetching sender's name and e-mail from the system
distribution directory
See Note 3 for command EMLMSG.
Example:
MMAIL/EMLSPL SUBJECT('Daily sales report')
FROMNAME('John Evans') FROMADDR('jevans@mail.com')
TO('dooley@superstar.com'/'Tom Dooley'/*TO)
SPLF(*YES/*LAST/*N/*N/*CURRENT/QSYSPRT)
B - Command MMAIL/EMLSPL2
is similar to command MMAIL/EMLSPL, except that individual PDF attachments
can be assigned different names.
|
|
Command MMAIL/EMLSPL2
E-mail spool files (EMLSPL2)
Type choices, press Enter.
'Subject' . . . . . . . . . . . ____________________________________________
____________________________________
______________________________
'Sender's name' . . . . . . . . ______________________________
'Sender's e-mail address' . . . ______________________________
Recipients . . . . . . . . . . . ____ *TO, *CC, *BCC
'name' . . . . . . . . . . . . _____________________________________
'e-mail address' . . . . . . . _____________________________________
+ for more values ____
Spooled file . . . . . . . . . . __________ Name
Job name . . . . . . . . . . . *CURRENT__ Name, *CURRENT
job user . . . . . . . . . . __________ Name
job number . . . . . . . . . ______ 000000-999999
Spooled file number . . . . . *LAST 1-9999, *ONLY, *LAST
Convert spool file to PDF . . *NO_ *NO, *YES
PDF name . . . . . . . . . . . *AUTO________________________________
______________________________________
PDF save directory . . . . . . *NONE________________________________
______________________________________
+ for more values __________
Source mbr for message body . . *NONE_____ Name, *DFT, *NONE
source file . . . . . . . . . __________ Name
library . . . . . . . . . . . *LIBL_____ Name, *LIBL, *CURLIB
Edit message body src mbr . . . *NO_ *NO, *YES
Importance . . . . . . . . . . . *MED *LOW, *MED, *HIG
Priority . . . . . . . . . . . . *NRM *NUR, *NRM, *URG
Sensitivity . . . . . . . . . . *NRM *NRM, *PRS, *PRV, *CNF
'Reply-to e-mail address' . . . *FROMADDR______________________________
Return receipt . . . . . . . . . *NO_ *NO, *YES
Save directory . . . . . . . . . '/mmail/history'________________________
Preformatted message body . . . N N, Y
|
|
|
C - Command MMAIL/EMLSPLX
allows to e-mail a message attaching up to 50 spool files
and can be e-mailed up to 50 receivers.
Optionally, a message body may be built from a text source
member.
It includes the same parameters as command EMLSPL. However:
- An overall conversion to PDF option is available.
- A parameter (PDFUTILITY) is available for selecting among the available conversion utilities.
- If PDFUTILITY(*CVTTOPDF) and the conversion utility specified by command CVTTOPDF is the AFP TO PDF TRANSFORM FEATURE,
then utility CVTSPLFPDF is used instead, because the transform feature cannot be used on existing spool files.
- If PDFUTILITY(*CVTSPLSTMF), parameters for assessing the PDF layout are also prompted.
Example:
MMAIL/EMLSPLX SUBJECT('Daily sales report')
FROMNAME('John Evans') FROMADDR('jevans@mail.com')
TO('dooley@superstar.com'/'Tom Dooley'/*TO)
SPLF(*LAST/*N/*N/*CURRENT/QSYSPRT)
CVTPDF(*YES) MSGM(*DFT)
PDFUTILITY(*CVTSPLSTMF)
PAGESIZE(*CUSTOM) CUSTOMPAGE(200 300) FONT(*COURIER 8)
4. E-mail save files
Command MMAIL/EMLSAVF
allows to e-mail a message attaching up to 30 save files.
Optionally, a message body may be built from a text source
member.
The message can be e-mailed up to 50 receivers.
| |
Command MMAIL/EMLSAVF
E-mail save files (EMLSAVF)
Type choices, press Enter.
'Subject' . . . . . . . . . . . ____________________________________________
____________________________________
______________________________
'Sender's name' . . . . . . . . ______________________________
'Sender's e-mail address' . . . ______________________________
Recipients . . . . . . . . . . . ____ *TO, *CC, *BCC
'name' . . . . . . . . . . . . _____________________________________
'e-mail address' . . . . . . . _____________________________________
+ for more values ____
Save file . . . . . . . . . . . __________ Name
Library . . . . . . . . . . . *LIBL_____ Name, *LIBL, *CURLIB
+ for more values __________
Source mbr for message body . . *NONE_____ Name, *DFT, *NONE
source file . . . . . . . . . __________ Name
library . . . . . . . . . . . *LIBL_____ Name, *LIBL, *CURLIB
Edit message body src mbr . . . *NO_ *NO, *YES
Importance . . . . . . . . . . . *MED *LOW, *MED, *HIG
Priority . . . . . . . . . . . . *NRM *NUR, *NRM, *URG
Sensitivity . . . . . . . . . . *NRM *NRM, *PRS, *PRV, *CNF
'Reply-to e-mail address' . . . *FROMADDR______________________________
Return receipt . . . . . . . . . *NO_ *NO, *YES
Save directory . . . . . . . . . /mmail/history__________________________
Preformatted message body . . . N N, Y
|
|
|
Subject: Subject of the message
Sender's name: Name of the person sending the message
Sender's address: E-mail address of the person sending the message
Recipients: up to 50 recipients can be specified; for each recipient the following
must be given:
- destination type: *TO, *CC, or *BCC
- recipient name, within quotes
- e-mail address, within quotes
Save file: up to 30 attachments can be specified; for each attachment the following
must be given:
- save file name
- library name
Source mbr for message body: member, file, and library name for
the text to become the body of the message.
If *NONE specified, the message will have no body,
just the attachment will be there.
If '*DFT' specified, library name and
text source member name need not be specified: a QTEMP source file
is generated and a default member name is assigned.
*DFT is not supported in batch execution.
Edit message body src mbr: whether the source member for the message body should be edited
(interactive job only). Editing is performed via STRSEU (if available), otherwise via EDTF.
Importance:
*LOW=low, *MED=medium, *HIG=high
Priority:
*NUR=non-urgent, *NRM=normal, *URG=urgent
Sensitivity:
*NRM=normal, *PRS=personal, *PRV=private, *CNF=confidential
(use command mmail/setconfid
to set the confidentiality statement).
Reply-to e-mail address: E-mail address of the person to receive reply messages, if different from the sender
Return receipt: whether a receipt should be returned to the
sender when the recipient opens the message.
Save directory: IFS directory to contain a copy of the
e-mailed MIME file, or *NONE .
Preformatted message body: Whether the message body should be presented as preformatted text.
A preformatted text is a text where all characters (including spaces) have the same width.
Examples are texts including text tables (not html tables, of course).
Note 1. This command can run both in the interactive and in the
batch environment.
Note 2- Fetching sender's name and e-mail from the system
distribution directory
See Note 3 for command EMLMSG.
Example:
MMAIL/EMLSAVF SUBJECT('Save file QGPL/MYLIB')
FROMNAME('John Evans') FROMADDR('jevans@mail.com')
TO('dooley@superstar.com'/'Tom Dooley'/*TO)
FILE(QGPL/MMAIL)
5a. E-mail stream files
|
|
There are two commands for e-mailing stream files: MMAIL/EMLSTMF and MMAIL/EMLSTMF2.
The only difference between them is that, while command EMLSTMF supports a maximum length of 50 characters
for the sender's and for the recipients' e-mail addresses, this maximum length is 256 in command EMLSTMF2.
Due to such likeness, we document hereafter just the EMLSTMF command.
Command MMAIL/EMLSTMF
allows to e-mail a message attaching up to 30 ASCII stream files.
Optionally, a message body may be built from a text source
member.
The message can be e-mailed up to 50 receivers.
Command MMAIL/EMLSTMF
E-mail stream files (EMLSTMF)
Type choices, press Enter.
'Subject' . . . . . . . . . . . ____________________________________________
____________________________________
______________________________
'Sender's name' . . . . . . . . ______________________________
'Sender's e-mail address' . . . ______________________________
Recipients . . . . . . . . . . . ____ *TO, *CC, *BCC
'name' . . . . . . . . . . . . _____________________________________
'e-mail address' . . . . . . . _____________________________________
+ for more values ____
'Stream file' . . . . . . . . . ________________________________________
+ for more values ________________________________________
Source mbr for message body . . *NONE_____ Name, *DFT, *NONE
source file . . . . . . . . . __________ Name
library . . . . . . . . . . . *LIBL_____ Name, *LIBL, *CURLIB
Edit message body src mbr . . . *NO_ *NO, *YES
Importance . . . . . . . . . . . *MED *LOW, *MED, *HIG
Priority . . . . . . . . . . . . *NRM *NUR, *NRM, *URG
Sensitivity . . . . . . . . . . *NRM *NRM, *PRS, *PRV, *CNF
'Reply-to e-mail address' . . . *FROMADDR______________________________
Return receipt . . . . . . . . . *NO_ *NO, *YES
Save directory . . . . . . . . . /mmail/history__________________________
|
|
|
Subject: Subject of the message
Sender's name: Name of the person sending the message
Sender's address: E-mail address of the person sending the message
Recipients: up to 50 recipients can be specified; for each recipient the following
must be given:
- destination type: *TO, *CC, or *BCC
- recipient name, within quotes
- e-mail address, within quotes
Stream file: up to 30 stream files can be attached to the message.
All the stream files to be attached must be in ASCII characters (CCSID 819 or 1252).
Source mbr for message body: member, file, and library name for
the text to become the body of the message.
If *NONE specified, the message will have no body,
just the attachment will be there.
If '*DFT' specified, library name and
text source member name need not be specified: a QTEMP source file
is generated and a default member name is assigned.
*DFT is not supported in batch execution.
Edit message body src mbr: whether the source member for the message body should be edited
(interactive job only). Editing is performed via STRSEU (if available), otherwise via EDTF.
Importance:
*LOW=low, *MED=medium, *HIG=high
Priority:
*NUR=non-urgent, *NRM=normal, *URG=urgent
Sensitivity:
*NRM=normal, *PRS=personal, *PRV=private, *CNF=confidential
(use command mmail/setconfid
to set the confidentiality statement).
Reply-to e-mail address: E-mail address of the person to receive reply messages, if different from the sender
Return receipt: whether a receipt should be returned to the
sender when the recipient opens the message.
Save directory: IFS directory to contain a copy of the
e-mailed MIME file, or *NONE .
Note 1. This command can run both in the interactive and in the
batch environment.
Note 2. When running interactive, if *NONE not specified, the text source member for the body is edited
prior to sending the message.
Note 3- Fetching sender's name and e-mail from the system
distribution directory
See Note 3 for command EMLMSG.
Example:
MMAIL/EMLSTMF SUBJECT('My IFS file')
FROMNAME('John Evans') FROMADDR('jevans@mail.com')
TO('dooley@superstar.com'/'Tom Dooley'/*TO)
STMF('/mydir/myphoto.gif')
5b. E-mail a HTML stream file
|
|
Command MMAIL/EMLHTML
allows to e-mail a HTML stream file (a HTML page).
The HTML page is embedded in the body of the MIME message, thus resulting in a high quality message.
The message can be e-mailed up to 50 receivers.
Command MMAIL/EMLHTML
E-mail HTML stream file (EMLHTML)
Type choices, press Enter.
'Subject' . . . . . . . . . . . ____________________________________________
____________________________________
______________________________
'Sender's name' . . . . . . . . ______________________________
'Sender's e-mail address' . . . ______________________________
Recipients . . . . . . . . . . . ____ *TO, *CC, *BCC
'name' . . . . . . . . . . . . _____________________________________
'e-mail address' . . . . . . . _____________________________________
+ for more values ____
'HTML stream file' . . . . . . . ____________________________________________
Importance . . . . . . . . . . . *MED *LOW, *MED, *HIG
Priority . . . . . . . . . . . . *NRM *NUR, *NRM, *URG
Sensitivity . . . . . . . . . . *NRM *NRM, *PRS, *PRV, *CNF
'Reply-to e-mail address' . . . *FROMADDR______________________________
Return receipt . . . . . . . . . *NO_ *NO, *YES
Save directory . . . . . . . . . /mmail/history__________________________
|
|
|
Subject: Subject of the message
Sender's name: Name of the person sending the message
Sender's address: E-mail address of the person sending the message
Recipients: up to 50 recipients can be specified; for each recipient the following
must be given:
- destination type: *TO, *CC, or *BCC
- recipient name, within quotes
- e-mail address, within quotes
HTML stream file: HTML stream file to be embedded in the body of the message
Importance:
*LOW=low, *MED=medium, *HIG=high
Priority:
*NUR=non-urgent, *NRM=normal, *URG=urgent
Sensitivity:
*NRM=normal, *PRS=personal, *PRV=private, *CNF=confidential
(use command mmail/setconfid
to set the confidentiality statement).
Reply-to e-mail address: E-mail address of the person to receive reply messages, if different from the sender
Return receipt: whether a receipt should be returned to the
sender when the recipient opens the message.
Save directory: IFS directory to contain a copy of the
e-mailed MIME file, or *NONE .
Note 1. This command can run both in the interactive and in the
batch environment.
Note 2- Fetching sender's name and e-mail from the system
distribution directory
See Note 3 for command EMLMSG.
Example:
MMAIL/EMLHTML SUBJECT('My HTML page')
FROMNAME('John Evans') FROMADDR('jevans@mail.com')
TO('dooley@superstar.com'/'Tom Dooley'/*TO)
STMF('/mydir/mypage.html')
6. Send a MIME file
Command 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.
Command MMAIL/SENDMIME
Send a MIME file (SENDMIME)
Type choices, press Enter.
Subject . . . . . . . . . . . . _______________________________________
From:
Sender Name . . . . . . . . . _______________________________________
Sender Address . . . . . . . . _______________________________________
To:
Send TO, CC or BCC . . . . . . ____ *TO, *CC, *BCC
Receiver Name . . . . . . . . _______________________________________
Receiver Address . . . . . . . _______________________________________
+ for more values _
IFS file to attach:
Send as Text or Binary . . . . *TEXT *BIN, *TEXT
Content Type . . . . . . . . . *ATTACHED_ *ATTACHED, *BODY
Mime type . . . . . . . . . . _______________________________________
IFS File Name . . . . . . . . _______________________________________
Character Set . . . . . . . . *SAME__________________________________
New Extension . . . . . . . . ___ Character value
Content ID . . . . . . . . . . _____ 0-999
+ for more values _
Database file to attach:
Content Type . . . . . . . . . *ATTACHED_ *ATTACHED, *BODY
File Name . . . . . . . . . . __________ Character value
File Library . . . . . . . . . __________ Character value
File Member . . . . . . . . . __________ Character value
Content ID . . . . . . . . . . ____ 0-999
+ for more values _
Source file to attach:
Content Type . . . . . . . . . *ATTACHED_ *ATTACHED, *BODY
Source File Name . . . . . . . __________ Character value
Source Library . . . . . . . . __________ Character value
Source Member . . . . . . . . __________ Character value
Character Set . . . . . . . . *SAME__________________________________
Content ID . . . . . . . . . . _____ 0-999
+ for more values _
Spool file to attach:
Content Type . . . . . . . . . *ATTACHED_ *ATTACHED, *BODY
Spool File Name . . . . . . . __________ Character value
Spool Number . . . . . . . . . ______ Character value
Spool Job Name . . . . . . . . __________ Character value
Spool Job User . . . . . . . . __________ Character value
Spool Job Number . . . . . . . ______ Character value
Content ID . . . . . . . . . . _____ 0-999
+ for more values _
Convert spool to PDF:
Spool File Name . . . . . . . __________ Character value
Spool Number . . . . . . . . . ______ Character value
Spool Job Name . . . . . . . . __________ Character value
Spool Job User . . . . . . . . __________ Character value
Spool Job Number . . . . . . . ______ Character value
Content ID . . . . . . . . . . _____ 0-999
PDF Name . . . . . . . . . . . _______________________________________
Save Directory . . . . . . . . _______________________________________
+ for more values _
Importance . . . . . . . . . . . MEDIUM____ LOW, MEDIUM, HIGH
Priority . . . . . . . . . . . . NORMAL____ NONURGENT, NORMAL, URGENT
Disposition notify to:
Notify Name . . . . . . . . . *NONE__________________________________
Notify Address . . . . . . . . *NONE__________________________________
Reply to:
Reply to Email . . . . . . . . *NOREPLY_______________________________
Invalid Emails . . . . . . . . . SEND__ SEND, REMOVE
Work Directory . . . . . . . . . _______________________________________
Save Directory . . . . . . . . . *NOSAVE________________________________
|
|
|
7. Automated e-mailing of spool files
Suppose that your iSeries produces regularly some reports
that you need to distribute to some people in your organization.
Why not to have an utility that automatically sends such reports
to them by e-mail, as soon as they become available?
MMAIL has an utility for that.
This is how you use it.
- Use command MMAIL/WRKADDR
to define the e-mail addresses of your users
- Use command MMAIL/WRKGRP
to define Groups of addresses (distribution lists)
- The pivot of spool files distribution is a data queue.
You may create a data queue and associate it to one
or more output queues. Every time a spool file is made
ready in one of these output queues, an entry is generated
in the output queue. Our utility receives the data queue
entries and (selectively) e-mail the spool files
to their destinations.
- To create an data queue,
crtdtaq libxxx/dtaqyyy maxlen(500) aut(*change)
- To associate a data queue to an output queue,
chgoutq libaaa/outqbbb dtaq(libxxx/dtaqyyy)
- Command MMAIL/STREMLSPLF DTAQ(libxxx/dtaqyyy)
(see later) starts e-mailing spool files
- Command MMAIL/ENDEMLSPLF DTAQ(libxxx/dtaqyyy)
ends e-mailing spool files
|