<?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>Help with MailMessage and Application.ActiveWindow.MailEnvelope</title><link>https://www.infopathdev.com:443/forums/thread/65901.aspx</link><pubDate>Wed, 13 Apr 2011 19:40:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65901</guid><dc:creator>gr8fasushi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65901.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=65901</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;hi all,&lt;/p&gt;&lt;p&gt;I&amp;#39;m running into an issue trying to programmatically attach the infopath form to an email using the MailMessage method.&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have been able to do it with the MailEnvelope method :&lt;/p&gt;&lt;p&gt;&amp;nbsp;Dim sendEmail As MailEnvelope = Application.ActiveWindow.MailEnvelope&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;however, I&amp;#39;m unable to replicate this using the MailMessage method.&amp;nbsp; Do you guys know of a way I can do this? I&amp;#39;d like the email to contain the info of the form in the body of the email without an actual attachment to the email. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;thanks for any input &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>