3.2.4.2.5.6 MailTo (put) (Opnum 17)

The MailTo (put) method sets the mail to property of the action. The mailTo string parameter value will be used as the list of addresses to send the email generated by this action. The format of the email address has to be as specified in [RFC5322].

 [propput, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_EMAIL | 0x03))] HRESULT MailTo(
   [in] BSTR mailTo
 );

mailTo: Contains the list of email addresses to use for this action. The string in mailTo MUST be in the form of a mailTo string (section 3.2.4.2).

Return Values: The method MUST return zero on success, or a nonzero error code on failure.

Return value/code

Description

0x8004530D

FSRM_E_OUT_OF_RANGE

The content of the mailTo parameter exceeds the maximum length of 4,000 characters.

0x80070057

E_INVALIDARG

The mailTo parameter is NULL.

The server MUST use mailTo as the mail to addresses of email generated by this action or return a nonzero error code.

If mailTo contains the string "[ADMIN EMAIL]", the server MUST store that string instead of replacing it with the Administrator email address setting (section 3.2.1.9).