Commands in EMAIL
SNDEMAIL (Send E-Mail)
The SNDEMAIL command is used to send a text or any file attachments from IBM Power Systems via e-mail. You can specify multiple recipients or copy recipients and up to 200 files from the IFS or DB2 file system. SNDMAIL sends these files as MIME attachments and works with any standard mail server.
The number of parameters available for selection depends on whether you specify a recipient and/or sender partner and/or a communication profile at SNDEMAIL.
Parameter | Permissible values | Description Values | Description Command |
---|---|---|---|
Receiver Partner ID (PARTNER) |
|
| At this point, you have the option of referring to a partner profile created in the master data (master data → Partner). |
Profile no. (STECK LETTER) |
|
| At this point, you have the option of referring to a communication profile created in the master data (Communication → Profile). |
Sender Alias (ORIGINATOR) |
|
| At this point, you have the option of referring to a sender profile created in the master data (master data → sender). |
E-mail recipient (RECIPIENT) |
|
For variable control of the receiver, CC and BCC addresses, any number of receiver, CC and BCC addresses can be stored for a partner. You can create these addresses in the partner master with selection 10 before the corresponding partner entry (recipient list). If the partner is then specified in the "Recipient Partner ID" parameter in SNDEMAIL, the e-mail is sent to all defined addresses. | Enter the e-mail addresses to which the attached files and/or the entered text should be sent. The e-mail address must be entered in the format "name@domain.xy". Up to 100 recipients can be entered. |
Subject (SUBJECT) |
|
| The text entered here will be transmitted as subject in the headers of the e-mail. The information for the subject can also be taken from any file in which the text is already encoded (e.g. UTF-8, Unicode, etc.) For this purpose, the fully qualified file name must be specified in this parameter. ( for example, /tmp/mySubject.txt or /QSYS.LIB/MYLIB/SUBJECT.FILE/SUBJECT.MBR ). |
Message text/file (MSGTEXT) |
| In addition to the files included in the e-mail attachment, a simple text can be entered here, which is displayed by the receiving mail client as message text (INLINE). The information for this message text can also be taken from any file. To do this, you must specify the fully qualified file name in this parameter. ( for example, /tmp/document.txt or /QSYS.LIB/MYLIB/TEXT.FILE/TEST.MBR ). Data read from an external file can only be displayed in the mail client of the recipient INLINE if the document type is supported there. This is usually the case with TEXT and HTML files. In all other cases, the file specified here is displayed in the mail client of the recipient as an attachment file. The following control characters can be used to support easy formatting of text manually entered in this parameter:
| |
Format |
|
| This parameter determines in which form the message text is available and in which format the message text should be sent. |
Kodierung |
|
| Specifies the character set to be used for this text. The data is therefore converted to the code page specified here according to this specification before sending. |
Annex (ATTACH) |
|
In connection with the i-effect *SERVER the following variables are also available: %TMP%, %HOME%, %CURDIR%, %USER%, %DATE%, %YEAR%, %YEAR2%, %MONTH%, %MONTHNAME%, %WEEKDAY%, %TIME%, %TIMESTAMP%, %DEFAULTPATH%, %SRVDIR%, ,%IFSPATH%, %IFSFILE% | This parameter takes the names of up to 200 files that will be added as attachments to the email to be sent. Generic names are allowed! Z. For example, you can attach all PDF files in the tmp directory to the email by specifying /tmp/*.pdf. If /tmp/*.* is specified, all files from /tmp are sent with the e-mail. |
CC |
| A valid e-mail address. For variable control of the receiver, CC and BCC addresses, any number of receiver, CC and BCC addresses can be stored for a partner. You can create these addresses in the partner master with selection 10 before the corresponding partner entry (recipient list). If the partner is then specified in the "Recipient Partner ID" parameter in SNDEMAIL, the e-mail is sent to all defined addresses. | Enter the e-mail addresses to which the attached files and/or the entered text should be sent as a copy. The e-mail address must be entered in the format "name@domain.xy". Up to 100 recipients can be entered. |
BCC |
| A valid e-mail address. For variable control of the receiver, CC and BCC addresses, any number of receiver, CC and BCC addresses can be stored for a partner. You can create these addresses in the partner master with selection 10 before the corresponding partner entry (recipient list). If the partner is then specified in the "Recipient Partner ID" parameter in SNDEMAIL, the e-mail is sent to all defined addresses. | Here you enter the e-mail addresses to which the attached files and/or the entered text should be sent as a hidden copy. Covert because none of the recipients in the fields "To" and "Cc" can see to whom the message has been sent as a covert copy. The e-mail address must be entered in the format "name@domain.xy". Up to 100 recipients can be entered. |
Priority (PRIO) |
|
| Defines the priority with which the e-mail should be marked in the recipient's mailbox. |
Acknowledgement of receipt (MDN) |
|
| This parameter can be used to specify whether an acknowledgement of receipt is requested for sending this e-mail. If the received system supports this function, it automatically generates an e-mail confirming receipt of the e-mail when confirmation is requested. |
Maximum mail size in KB (SIZE) |
|
| The use of e-mail servers is occasionally restricted with regard to the maximum size of e-mails, either by the provider or on the recipient's side. At this point you can take this into account by setting a maximum size for the e-mail file created. If this maximum size is exceeded by, for example, the number and size of attachments, the attachments are automatically distributed and sent to several e-mails. A maximum size of 9500kb is recommended. |
Signature Algorithm (SIGN) |
|
| The parameter consists of two elements. The first element specifies the signature algorithm to be used. The parameter consists of two elements. The second element specifies the entry (alias) of the public key/certificate in the keystore that is to be used for encryption (master data → Certificates - Keystore: *CRYPT). With this parameter it can be specified whether the outgoing e-mail is to be electronically signed. An e-mail that has been electronically signed in this way can be examined by the recipient using the sender's public key for authenticity and integrity, as well as for its original origin. The second element names the entry (alias) of the private key in the keystore to be used for the signature |
Encryption algorithm (ENCRYPT) |
|
| The parameter consists of two elements. The first element specifies the encryption algorithm to be used. The parameter consists of two elements. The second element specifies the entry (alias) of the public key/certificate in the keystore that is to be used for encryption (master data → certificates - keystore: *CRYPT). This parameter can be used to specify whether the e-mail to be sent is electronically encrypted. An e-mail that has been encrypted in this way can only be restored by the recipient using his or her private key. will be decrypted. |
SMTP-Server |
|
| This parameter consists of six elements that contain information about the mail server to be used. If you enter the special value *DEFAULT in parameter "DNS Name or IP", the values for all SMTP elements are taken from the module configuration. |
E-mail address of sender |
|
| This is the e-mail address that will be entered as the sender of the e-mail. |
Reply-to e-mail address |
|
| This is the e-mail address to which replies are sent by the recipient of this e-mail. |
Email address error |
|
| This is the e-mail address to which transmission errors are reported. |
i-effect application server (EFFSERVER) |
|
| With i-effect you have the possibility to call some tasks remotely from other IBM Power Systems in the network. So it is also possible to call this command remotely. In this case, you must enter the server on which i-effect is installed and licensed. Here you can determine whether the server from which the call is made should first wait for the result of the call or should be available again immediately for further input. |
SNDEMAIL (Send E-mail)
The RCVEMAIL command is used to retrieve e-mail from a POP or IMAP-compatible mail server. File attachments or texts from e-mails are automatically decoded and stored in the assigned directories.
Parameter | Permissible values | Description Values | Description Command |
---|---|---|---|
Profile No. (PROFILE) |
|
| At this point, you have the option of referring to an already created communication profile (Kommunikation→ Profile). |
Storage directory |
|
| This parameter consists of 2 elements and defines the directories to be used for receiving e-mails. |
Assign Partner (ASSIGNPRT) |
|
| Activates or deactivates the partner assignment for mail receipt. If the assignment is deactivated, no search for a partner entry for the sender address of a retrieved e-mail takes place. A defined assignment of mail address to partner thus remains without effect. Only the parameters or the module configuration specified in the RCVEMAIL command are then used. If the assignment is activated, processing with partner settings is performed, if configured accordingly. |
POP3/IMAP Server |
|
| This parameter consists of eight elements containing information about the mail server to be used. The mail server must use the POP3 or IMAP protocols. If you enter the special value *DEFAULT for parameter "DNS name", the values for all eight elements are taken from the module configuration. |
i-effect application server (EFFSERVER) |
|
| With i-effect you have the possibility to call some tasks remotely from other IBM Power Systems in the network. So it is also possible to call this command remotely. In this case, you must enter the server on which i-effect is installed and licensed. Here you can determine whether the server from which the call is made should first wait for the result of the call or should be available again immediately for further input. |