3.2.4.2.11.1 SmtpServer (get) (Opnum 7)

The SmtpServer (get) method retrieves the SMTP server name  that the File Server Resource Manager Protocol is configured to use when sending email messages and returns S_OK upon successful completion.

 [propget, id(FSRM_PROPERTY(FSRM_DISPID_SETTING | 0x01))] HRESULT SmtpServer(
   [out, retval] BSTR* smtpServer
 );

smtpServer: A pointer to a variable that upon completion contains the SMTP server name 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 smtpServer parameter is NULL.

Upon receiving this message, the server MUST validate parameters:

  • Verify that smtpServer is not NULL.

If any validation fails, the server MUST terminate processing and return a nonzero error code.

The server MUST set smtpServer to the SMTP server name that the File Server Resource Manager Protocol is configured to use.