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.
HRESULT put_Server( BSTR server );
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.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|