<?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>Sending an email as body of Email from c#.NET</title><link>https://www.infopathdev.com:443/forums/thread/42165.aspx</link><pubDate>Wed, 27 May 2009 16:12:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42165</guid><dc:creator>SanPedro</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42165.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=42165</wfw:commentRss><description>&lt;p&gt;Hi all&lt;/p&gt;
&lt;p&gt;Am new to infoapth but am a very experienced .NET developer.&lt;/p&gt;
&lt;p&gt;I am writing a system that will send out&amp;nbsp;infopath forms via email which users of the system will fill and and then submit (as xml) to the application for processing.&lt;/p&gt;
&lt;p&gt;At the moment we are sending the .xsn file to be opened as an attachment using smtp wih some code similar to&lt;/p&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;String&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; path = &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ConfigurationManager&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.AppSettings[&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;InfopathFormsDir&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;] + Filename + &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;.xsn&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;Attachment&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; oAttach = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;Attachment&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(path);&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;SmtpClient&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; client = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;SmtpClient&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;();&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;mailMessage.Attachments.Add(oAttach);&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;What&amp;nbsp;I want is to have the email sent as the body of the email and submitted from inside outlook 2007.&amp;nbsp; We will be using forms server and&amp;nbsp;also have custom code placed inside the form.&lt;/p&gt;
&lt;p&gt;Can you give me a steer towards some information, or tell me I need to rethink things then let me know.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Cheers&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>