attachmentFileName Element
In this article
Contains the file name of the file attachment to be included with the e-mail message when the form is submitted by using the emailAdapter element.
Type
Parent Elements
emailAdapter
Parent element that contains the information to submit a Microsoft Office InfoPath file as an attachment to an e-mail message, with a specified set of recipients, a subject, and an introduction.
Child Elements
None.
Attributes
value
Yes
Contains the value of the attachmentFileName element.
string
xsd:string
valueType
No
Specifies whether the value attribute is interpreted as an XPath expression or a literal string.
xsf:xdExpressionLiteral
Definition
<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>
The attachmentFileName element is a child element of the emailAdapter element.
Example
The following is an example of the attachmentFileName element:
<xsf:emailAdapter name="Submit" submitAllowed="yes">
<xsf:to value="prst@foo.com" valueType="literal"/>
<xsf:cc value="my:ccNames" valueType="expression"/>
<xsf:bcc value="john@bar.com" valueType="literal"/>
<xsf:subject value="My report" valueType="literal"/>
<xsf:intro value="See below"/>
<xsf:attachmentFileName value="Status Report" valueType="literal"/>
</xsf:emailAdapter>