IEmailAction::put_Server method (taskschd.h)

[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(
  BSTR server
);

Parameters

server

Return value

None

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

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header taskschd.h
Library Taskschd.lib
DLL Taskschd.dll

See also

IEmailAction