3.2.4.2.11.3 MailFrom (get) (Opnum 9)
The MailFrom (get) method retrieves the default mail from email address that the File Server Resource Manager Protocol is configured to use, and returns S_OK upon successful completion. The format of the email address has to be as specified in [RFC5322].
-
[propget, id(FSRM_PROPERTY(FSRM_DISPID_SETTING | 0x02))] HRESULT MailFrom( [out, retval] BSTR* mailFrom );
mailFrom: Pointer to a variable that upon completion contains the default mail from email address that the File Server Resource Manager Protocol is configured to use.
Return Values: The method MUST return zero on success, or a nonzero error code on failure.
-
Return value/code
Description
0x80070057
E_INVALIDARG
The mailFrom parameter is NULL.
Upon receiving this message, the server MUST validate parameters:
Verify that mailFrom is not NULL.
If any validation fails, the server MUST terminate processing and return a nonzero error code.
The server MUST set mailFrom to the default mail from email address that the File Server Resource Manager Protocol is configured to use.