3.2.4.2.11.4 MailFrom (put) (Opnum 10)

The MailFrom (put) method sets the default mail from email address that the File Server Resource Manager Protocol will use and returns S_OK upon successful completion. The MailFrom string is the default sender of emails generated by the File Server Resource Manager Protocol. The format of the email address has to be as specified in [RFC5322].

 [propput, id(FSRM_PROPERTY(FSRM_DISPID_SETTING | 0x02))] HRESULT MailFrom(
   [in] BSTR mailFrom
 );

mailFrom: Contains the default mail from email address for the File Server Resource Manager Protocol to use. The maximum length of this string MUST be 4,000 characters.

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

The server MUST use mailFrom as the mail from email address on email messages generated by the File Server Resource Manager Protocol or return a nonzero error code.