RuleAddActionSendMail()

Sends a mail item when rule conditions are met.

Token ID

AFTKN_RULE_ACT_SENDMAIL or 653

Syntax

VOID RuleAddActionSendMail( [ANSISTRING UserID]; 
                            [ANSISTRING RuleName]; 
                            [ANSISTRING To]; 
                            [ANSISTRING CC]; 
                            [ANSISTRING BC]; 
                            [ANSISTRING Subject]; 
                            [ANSISTRING Files]; 
                            [ANSISTRING Message]; 
                            [ANSISTRING From]; 
                            [ANSISTRING ViewName])

Parameters

UserID As ANSISTRING

(Optional)

RuleName As ANSISTRING

Name of the rule to add the action to.

To As ANSISTRING

Recipient user ID. (Optional)

CC As ANSISTRING

User ID of the person to receive a copy of the item. (Optional)

BC As ANSISTRING

User ID of the person to receive a blind copy of the item. (Optional)

Subject As ANSISTRING

(Optional) Subject for the sent item.

Files As ANSISTRING

Separate multiple attachments with a comma. (Optional)

Message As ANSISTRING

(Optional) Message for the sent item.

From As ANSISTRING

Name of person replying to the item. (Optional)

ViewName As ANSISTRING

Name of a mail view—such as "Mail"— or the name of a custom mail view. (Optional)

See Also