3.2.4.2.5.2 MailFrom (put) (Opnum 13)
The MailFrom (put) method sets the mail from property of the action. The mailFrom string parameter value will be used as the sender of 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 | 0x01))] HRESULT MailFrom( [in] BSTR mailFrom );
mailFrom: Contains the mail from email address to use for this action.
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 mailfFrom parameter exceeds the maximum length of 4,000 characters.
0x80070057
E_INVALIDARG
The mailFrom parameter is NULL.
The server MUST use mailFrom as the mail from address for email generated by this action or return a nonzero error code.
If mailFrom 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).