Edit

Share via


EmailSubmitConnection Class

Definition

Represents the data connection for submitting form information in e-mail.

public ref class EmailSubmitConnection abstract : Microsoft::Office::InfoPath::DataConnection
public abstract class EmailSubmitConnection : Microsoft.Office.InfoPath.DataConnection
type EmailSubmitConnection = class
    inherit DataConnection
Public MustInherit Class EmailSubmitConnection
Inherits DataConnection
Inheritance
EmailSubmitConnection

Remarks

The EmailSubmitConnection class represents a data connection created in InfoPath using the Data Connection Wizard that specifies all the information necessary for submitting a form in e-mail.

Use the Microsoft.Office.InfoPath.DataConnectionCollection.Item property of the DataConnectionCollection collection to return an EmailSubmitConnection object.

The values of most of the properties of the EmailSubmitConnection class are returned as XPathTypedValue objects, which can be set by specifying a literal string value using the SetStringValue(String) method of the XPathTypedValue class, or by specifying an XPath expression using the XPath property of the XPathTypedValue class. For more information and code samples, see the XPathTypedValue Class topic.

The EmailSubmitConnection class corresponds to the EmailAdapterObject interface of the Microsoft Office InfoPath 2003 object model.

Constructors

EmailSubmitConnection()

Properties

AttachmentFileName

Gets an XPathTypedValue object that evaluates to the file name to be used for the current form when the form is attached to an e-mail message submitted with an EmailSubmitConnection object.

Bcc

Gets an XPathTypedValue object that evaluates to the blind carbon copy (BCC) addresses of an e-mail message submitted with an EmailSubmitConnection object.

CC

Gets an XPathTypedValue object that evaluates to the carbon copy (CC) addresses of an e-mail message submitted with an EmailSubmitConnection object.

EmailAttachmentType

Gets or sets the type of file to be attached to the e-mail message submitted with an EmailSubmitConnection object.

Introduction

Gets or sets the introduction in the body of an e-mail message submitted with an EmailSubmitConnection object.

Name

Gets the name of the data connection.

(Inherited from DataConnection)
Subject

Gets an XPathTypedValue object that evaluates to the subject of an e-mail message submitted with an EmailSubmitConnection object.

To

Gets an XPathTypedValue object that evaluates to the addresses of the recipients of an e-mail message submitted with an EmailSubmitConnection object.

Methods

Execute()

Depending on which ConnectionTypeConnection class it is called from, executes a submit or query operation on the data connection using the declaratively defined values for the submitted data, query parameters, or data to retrieve.

(Inherited from DataConnection)
Execute(XPathNavigator)

Overrides the default Execute() method to allow specifying a different source of data to submit.

Applies to