Public Source
|
|
Introduction |
Main utilities |
E-mail signatures |
5250 utility |
Windows utility |
Commands |
Service program |
Sample code |
CGI support |
FAQ |
WEBMail |
Bibliography |
Index |
|
Download |
|
|
|
|
|
Work with e-mail signature
|
Some MMAIL users are asking for their signature be automatically added to their e-mail messages.
This page explains how to do that.
1. How it works
MMAIL-supported signatures are images stored in some http-server box, not necessarily the IBM-i where the MMAIL is running.
The only information that is needed to get and to display that picture as a signature at the bottom of an e-mail body is the URL to this image
or a local HTML script making up the signature.
Examples:
- http://www.company.com/mydir/bjones.jpg
- /mydir/bjones.html
To implement automated signature addition (to the bottom of e-mail messages) you have to run two MMAIL commands:
- CRTSGN - This command has four parameters:
- The e-mail address of an e-mail sender (example: bill_jones@camelot.net)
- Whether the signature is implemented through an image or through an HTML script
- If a picture, the URL to the image representing the signature for the e-mail messages sent by that e-mail address
(example: http://www.company.com/mydir/bjones.jpg)
- If an HTML script, the the path of the local HTML stream file for the e-mail messages sent by that e-mail address
(example: /mydir/bjones.html) .
- SETSGN - this command has also two parameters:
- The e-mail address of an e-mail sender (example: bill_jones@camelot.net)
- Whether the automated signature option for this sender is to be enabled or disabled.
Note - This approach works for all MMAIL EML... commands based on API QtmmSendMail(Send MIME Mail).
2. Command CRTSGN
Create e-mail addr. signature (CRTSGN)
Type choices, press Enter.
Sender's e-mail address . . . . EMAIL ___________________________________
________________________________________________________________________________
____________________________________________________
Type of signature . . . . . . . TYPE _____ *IMG, *HTML
URL to signature image . . . . . IMGURL ___________________________________
____________________________________________________
Path to signature HTML stmf . . HTMLPATH ___________________________________
____________________________________________________ |
3. Command SETSGN
Set signature status (SETSGN)
Type choices, press Enter.
Sender's e-mail address . . . . EMAIL ___________________________________
________________________________________________________________________________
____________________________________________________
Status to be set . . . . . . . . STATUS ____ *ON, *OFF |
|
|
|