Adding Custom Mail Contents

In the Notification Editor, the Include list specifies what to include in an e-mail notification message. You can add items to this list. The items can be used as the message subject, inserted in the message body, or included as attachments to the message.

To add an item to the Include list of the Notification Editor:

1    Define a function in the macroXX.bas file.

This function should return the content you want to include in the e-mail message.

macroXX.bas is located in the project sub-folder of the HelpDeskServer folder (for example:

HelpDeskServer\helpdesk\macro70.bas)

2    Open the project definitions database, and in the tblMacros table, add a row for the new function.

tName is the name of the macro.

tFunctionName is the name of a function defined in macroXX.bas.

nType specifies what arguments the function takes:

1 = No Arguments

2 = Issue Record

3 = Revision history

4 = Expression

3    In the tblMailContents table, add a row for the macro, using the same tName as in tblMacros.

nType specifies where to include the contents:

1 = subject

2 = body

3 = attachment

nFormatType specifies the format:

4 = rtf

8 = text

14 = word

31 = pdf

32 = html40

When nType = 2, nFormatType must be 8 (text), otherwise the contents appears as a plain text e-mail message that contains RTF or PDF, which is never sent. This will hold up all your notifications.

Related Topics

Specifying Notification Contents

Changing the Format of Attachments

Attaching Information

Example Macros

Adding New Notification Reports

Editing Databases