emailAdapter Element
In this article
Contains the information needed to submit an InfoPath form as an attachment to an e-mail, with a specified set of recipients, a subject, and an introduction.
Type
Child Elements
to
Contains a list of addresses, separated by semicolons, to be added to the to line of the submitted e-mail.
cc
Contains a list of addresses, separated by semicolons, to be added to the cc line of the submitted e-mail.
bcc
Contains a list of addresses, separated by semicolons, to be added to the bcc line of the submitted e-mail.
subject
Contains the subject of the submitted e-mail.
intro
Contains the introduction of the submitted e-mail.
attachmentFileName
Contains the file name of the attachment to be submitted with the e-mail.
Attributes
name
Yes
Contains the name of the emailAdapter .
minLength = 1
maxLength = 255
pattern = ([^\p{Z}\p{Cc}\p{Cf}\p{Cn}])(([^\p{Zl}\p{Zp}\p{Cc}])*([^\p{Z}\p{Cc}\p{Cf}\p{Cn}]))?
xdTitle
queryAllowed
No
Specifies whether the adapter can be used for querying the data source. Omitted for the emailAdapter , corresponding to a default value of "no".
xdYesNo
submitAllowed
No
Specifies whether the adapter can be used for submitting to the data source. Always set to "yes" for the emailAdapter .
xdYesNo
Definition
<xsd:element name="emailAdapter">
<xsd:complexType>
<xsd:all>
<xsd:element name="to" minOccurs="0">
<xsd:complexType>
<xsd:attribute name="value" type="xsd:string" use="required"></xsd:attribute>
<xsd:attribute name="valueType" type="xsf:xdExpressionLiteral" use="optional"></xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:element name="cc" minOccurs="0">
<xsd:complexType>
<xsd:attribute name="value" type="xsd:string" use="required"></xsd:attribute>
<xsd:attribute name="valueType" type="xsf:xdExpressionLiteral" use="optional"></xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:element name="bcc" minOccurs="0">
<xsd:complexType>
<xsd:attribute name="value" type="xsd:string" use="required"></xsd:attribute>
<xsd:attribute name="valueType" type="xsf:xdExpressionLiteral" use="optional"></xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:element name="subject" minOccurs="0">
<xsd:complexType>
<xsd:attribute name="value" type="xsd:string" use="required"></xsd:attribute>
<xsd:attribute name="valueType" type="xsf:xdExpressionLiteral" use="optional"></xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:element name="intro" minOccurs="0">
<xsd:complexType>
<xsd:attribute name="value" type="xsd:string" use="required"></xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:element name="attachmentFileName" minOccurs="0">
<xsd:complexType>
<xsd:attribute name="value" type="xsd:string" use="required"></xsd:attribute>
<xsd:attribute name="valueType" type="xsf:xdExpressionLiteral" use="optional"></xsd:attribute>
</xsd:complexType>
</xsd:element>
</xsd:all>
<xsd:attribute name="name" type="xsf:xdTitle" use="required"></xsd:attribute>
<xsd:attribute name="queryAllowed" type="xsf:xdYesNo" use="optional"></xsd:attribute>
<xsd:attribute name="submitAllowed" type="xsf:xdYesNo" use="optional"></xsd:attribute>
</xsd:complexType>
</xsd:element>
Example
The following is an example of the emailAdapter element:
<xsf:emailAdapter name="Submit" submitAllowed="yes">
<xsf:to value="someone@example.com" valueType="literal"/>
<xsf:cc value="my:ccNames" valueType="expression"/>
<xsf:bcc value="someoneelse@example.com" valueType="literal"/>
<xsf:subject value="My report" valueType="literal"/>
<xsf:intro value="See below"/>
<xsf:attachmentFileName value="Status Report" valueType="literal"/>
</xsf:emailAdapter >