<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Use current filename as email attachment</title><link>https://www.infopathdev.com:443/forums/thread/98141.aspx</link><pubDate>Thu, 26 Jun 2014 14:56:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98141</guid><dc:creator>Lee Boardman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/98141.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=98141</wfw:commentRss><description>My forms are being completed using InfoPath filler and are being submitted via email with the form data as an attachment. 

What I would like to be able to do if possible, is specify the current filename as the attachment name. For example, if the form being filled is &amp;#39;3389_dataform.xsn&amp;#39; then I would like the attachment to be called &amp;#39;3389_dataform.xml&amp;#39;.

If that is not possible, can the filename (3389_dataform.xsn) be stored in a hidden field somewhere so that this is included as part of the form data?

I&amp;#39;ve seen other answers which discuss dynamically generated filenames, but the xsn forms which are being completed have already been dynamically created by a web application which copies and renames the original before sending to a user. Therefore, I need to get something back in my email which identifies that naming so that the same web application can parse the XML and identify what the data relates to.</description></item></channel></rss>