Please enable JavaScript to view this site.

From version 7.0.00 - This program will allow you to add multiple email attachments (up to 25) in your Cobwebb Design. The attachments are copied from the specified folder to the folder defined in the Data Area EMLATTPTH (normally '/cppd/email/'), generating a unique name for the file, to ensure they are not modified after they have been added. Note: They will be emailed with the original file name unless you have specified an alternate name in PARM2 of the *ATT call.

If you have a general attachment such as Terms & Conditions then you would possibly want to keep it in the original folder as well, but if you had created an attachment specifically for the email then you might want to delete it after it has been copied. This is configured using PARM4 of the *ATT call (see below for details).

*FIRST - Clear Attachments

This is a mandatory call to clear out any previous attachments. This should be called when you wish to start a new list of attachments to add, possibly inside a "Page = *FIRST" or "Page = *START" condition.

Parameter

In

Len

PARM1


 

PARM2


 

PARM3


 

PARM4


 

PARM5


 

PARM6

*FIRST

8

*ATT - Add Attachment

For every attachment you wish to add to your email (except the one automatically created by your design) you need to add an *ATT call. You may add up to 25 attachments. If you add any more they will be discarded.

Note: It is important that if you wish to keep the original attachment you specify "N" in PARM4.

Parameter

In

Len

PARM1

Complete File path to file including file name e.g. /test/0104123.PDF

132

PARM2

Alternate file name for the file when sending via email

68

PARM3

Alternate file name extension (if you have not included it in PARM2)

10

PARM4

Delete file (Blank=Delete file (default), N = Keep file)

1

PARM5


 

PARM6

*ATT

8

*LAST - End the program

This is a mandatory call to end the program. This should be called inside either a “Page = *LAST” or “Page = *END” condition and only called ONCE within a PPD file.

Parameter

In

Len

PARM1


 

PARM2


 

PARM3


 

PARM4


 

PARM5


 

PARM6

*LAST

8