IEmailAction::Server property

[This interface is no longer supported. Please use IExecAction with the powershell Send-MailMessage cmdlet as a workaround.]

Gets or sets the name of the SMTP server that you use to send email from.

This property is read/write.

Syntax


HRESULT put_Server(
  [in]   BSTR server
);

HRESULT get_Server(
  [out]  BSTR *pServer
);

Property value

The name of the server that you use to send email from.

Remarks

Make sure the SMTP server that sends the email is setup correctly. E-mail is sent using NTLM authentication for Windows SMTP servers, which means that the security credentials used for running the task must also have privileges on the SMTP server to send email message. If the SMTP server is a non-Windows based server, then the email will be sent if the server allows anonymous access. For information about setting up the SMTP server, see SMTP Server Setup, and for information about managing SMTP server settings, see SMTP Administration.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

End of client support

Windows 7

End of server support

Windows Server 2008 R2

Header

Taskschd.h

Library

Taskschd.lib

DLL

Taskschd.dll

See also

IEmailAction

 

 

Community Additions

ADD
Show:
© 2014 Microsoft