Automatic mail notification is sent when a defect changes and there is a mail condition defined for the change.
A condition consists of two parameters:
- Mail recipient - specifies who will be receiving the notification
- Defect matching rule - a filter string, generally a TDFilter.Text
There are two ways to specify a mail recipient: direct and indirect.
To specify a recipient directly, use the user name.
To specify a recipient indirectly, use the name of field that holds the user name. Indirect recipient specifications can only use the Detected By (BG_DETECTED_BY) and Assigned To (BG_RESPONSIBLE) fields.
The TDMailConditions object for the connection is TDConnection.MailConditions.
|Close||Closes and updates Mail Condition.|
|DeleteCondition||Deletes the Mail Condition.|
|Load||Loads Mail Conditions.|
|LockObject||Locks the object. Returns True if the object has been changed on the server.|
|UnLockObject||Unlocks the object.|
|Condition||The defect-matching rule.|
|IsLocked||Checks if object is locked for editing.|
|ItemList||Gets the list of Mail Condition Users.|