Skip to content

Latest commit

 

History

History
111 lines (87 loc) · 5.44 KB

taskschedulerschema-sendemailtype-complextype.md

File metadata and controls

111 lines (87 loc) · 5.44 KB
title description ms.assetid keywords topic_type api_name api_type ms.topic ms.date api_location
sendEmailType Complex Type
Defines the action type used to specify that an email will be sent when a task executes. This type defines all the elements used to model the email message.
e384971f-e7e4-4206-9d15-9555dfcbac2f
sendEmailType complex type Task Scheduler
apiref
sendEmailType
Schema
reference
05/31/2018

sendEmailType Complex Type

Defines the action type used to specify that an email will be sent when a task executes. This type defines all the elements used to model the email message.

<xs:complexType name="sendEmailType">
    <xs:complexContent>
        <xs:extension
            base="actionBaseType"
        >
            <xs:all>
                <xs:element name="Server"
                    type="nonEmptyString"
                 />
                <xs:element name="Subject"
                    type="string"
                    minOccurs="0"
                 />
                <xs:element name="To"
                    type="string"
                    minOccurs="0"
                 />
                <xs:element name="Cc"
                    type="string"
                    minOccurs="0"
                 />
                <xs:element name="Bcc"
                    type="string"
                    minOccurs="0"
                 />
                <xs:element name="ReplyTo"
                    type="string"
                    minOccurs="0"
                 />
                <xs:element name="From"
                    type="string"
                    minOccurs="0"
                 />
                <xs:element name="HeaderFields"
                    type="headerFieldsType"
                    minOccurs="0"
                 />
                <xs:element name="Body"
                    type="string"
                    minOccurs="0"
                 />
                <xs:element name="Attachments"
                    type="attachmentsType"
                    minOccurs="0"
                 />
            </xs:all>
        </xs:extension>
    </xs:complexContent>
</xs:complexType>

Child elements

Element Type Description
Attachments attachmentsType Specifies a list of attachments in the email message.
Bcc string Specifies the email addresses used on the Bcc line of an email message.
Body string Specifies the text in the body of the email message.
Cc string Specifies the email addresses used on the Cc line of an email message.
From string Specifies the email address of the sender.
HeaderFields headerFieldsType Specifies the header fields and their values used in the header of the email message.
ReplyTo string Specifies the email addresses that are replied to in the email message.
Server nonEmptyString Specifies the email server used to send the email message.
Subject string Specifies the subject of the email message.
To string Specifies the email addresses to which the email will be sent.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]