Export (0) Print
Expand All
Expand Minimize

SendEmail (actionGroup) Element

Represents an action that sends an email message.

<xs:element name="SendEmail"
    type="sendEmailType"
 />

The SendEmail element is defined by the actionGroup .

Parent element

ElementDerived fromDescription
Actions actionsType

Contains the actions performed by the task.

Child elements

ElementTypeDescription
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.

Remarks

For C++ development, see the IEmailAction interface.

For script development, see the EmailAction object.

Windows 8 and Windows Server 2012:  This element has been removed. Please use IExecAction with the powershell Send-MailMessage cmdlet as a workaround.

Examples

For a complete example of the XML for a task that specifies an email action, see Event Trigger Example (XML).

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

 

 

Community Additions

ADD
Show:
© 2014 Microsoft