Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IFsrmActionEmail2::MailFrom property

[This property is supported for compatibility but it's recommended to use the FSRM WMI Classes to manage FSRM. Please see the MSFT_FSRMAction, MSFT_FSRMFMJAction, and MSFT_FSRMFMJNotificationAction classes.]

Retrieves or sets the email address to use as the sender of the email when the action generates an email message.

This property is read/write.

Syntax


HRESULT put_MailFrom(
  [in]  BSTR mailFrom
);

HRESULT get_MailFrom(
  [out] BSTR *mailFrom
);

Property value

The email address to use as the sender of the email when the action generates an email message. The string is limited to 4,000 characters.

Error codes

The method returns the following return values.

NameMeaning
S_OK

Success.

E_INVALIDARG

The mailFrom parameter is NULL or empty.

FSRM_E_OUT_OF_RANGE

The address is too long.

Examples

For an example, see Performing Actions Based on File Screen Violations.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008

Header

Fsrm.h (include FsrmQuota.h or FsrmScreen.h)

DLL

SrmSvc.dll

IID

IID_IFsrmActionEmail is defined as d646567d-26ae-4caa-9f84-4e0aad207fca

See also

IFsrmActionEmail2
IFsrmActionEmail
MSFT_FSRMAction
MSFT_FSRMFMJAction
MSFT_FSRMFMJNotificationAction

 

 

Show:
© 2015 Microsoft