Please enable JavaScript to view this site.
This is a Standard Exit program which you call each time you wish to write out an email address for a document to the Temporary Additional Email Addresses file with an *EMAIL call. Then, when you have finished i.e. at the end of a document & change of Email Key, call it again with *LAST to close the program and file.
The Email Key that you pass must be unique, so maybe a date time stamp (you can use COBDATE for this), and the unique document number e.g. Invoice No, PO No etc. which you can concatenate with the date time stamp using COBMERGE or Multiple Variable & Parameter substitution.
The records written to this file will be processed by the GETMULTEML Email Exit program and deleted. This Email Exit program could be called in the same Cobwebb Design that writes the records or in a totally separate design. If it is going to be a separate design then you will need to write the Email Key to your interim spooled file so that it can be passed to GETMULTEML to retrieve the correct email addresses for the document.
*EMAIL Call
Parameter |
In |
Len |
Description |
PARM1 |
Email key |
80 |
A unique key for this email output which will need to be passed into the GETMULTEML Email Exit Program as the Destination Address. |
PARM2 |
Email Type |
3 |
This can be TO, CC or BCC. Note: For the first email address you supply this will always be a TO regardless of what you enter here as it is used as the main email address for the Cobwebb Queue. |
PARM3 |
Email Address |
132 |
The email address for the recipient |
PARM4 |
Email Name |
50 |
The name for the recipient |
PARM5 |
- |
|
- |
PARM6 |
7 |
*LAST Call
This should be called on change of document i.e. when PAGE = *LAST. If at this point you have written more than 20 email addresses a message is written to the joblog explaining that the limit of 20 has been exceeded.
Parameter |
In |
Len |
Description |
PARM1 |
- |
|
- |
PARM2 |
- |
|
- |
PARM3 |
- |
|
- |
PARM4 |
- |
|
- |
PARM5 |
- |
|
- |
PARM6 |
*LAST |
7 |
- |