<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Sending an email with MHT file as body also adds the filename to body</title><link>https://www.infopathdev.com:443/forums/thread/57458.aspx</link><pubDate>Thu, 29 Jul 2010 18:57:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57458</guid><dc:creator>jtownson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57458.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=57458</wfw:commentRss><description>&lt;p&gt;Hi All,&lt;/p&gt;I am using this code to send an MHT file in the body of an email.&amp;nbsp; It works a really well however it adds the file name of the attachment to the body as well - is there a way of removing it?&lt;font size="2"&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;thisXDocument.View.Export(filelocation,&amp;quot;MHT&amp;quot;);&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;EmailAdapter Email1 = (EmailAdapter)thisXDocument.DataAdapters[&amp;quot;submit&amp;quot;];&lt;/p&gt;
&lt;p&gt;Email1.To = toaddress;&lt;/p&gt;
&lt;p&gt;Email1.C = ReqEmail;&lt;/p&gt;
&lt;p&gt;Email1.Subject = subject;&lt;/p&gt;
&lt;p&gt;Email1.Intro = filelocation;&lt;/p&gt;
&lt;p&gt;Email1.Submit();&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks All&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>