<?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>Generate two emails using code, one as email body &amp; one as attachment</title><link>https://www.infopathdev.com:443/forums/thread/57326.aspx</link><pubDate>Sun, 25 Jul 2010 15:20:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57326</guid><dc:creator>FrancoV</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57326.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=57326</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have been using InfoPath 2003 with SharePoint 2007 for about 1.5 years now and have developed a few different forms with some custom &amp;quot;Jscript&amp;quot; within the &amp;quot;Microsoft Script Editor&amp;quot;. This site has definitely helped me in more ways than one. I have a new challenge that is stumpping me at the moment. Here&amp;#39;s what I would like to do:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;When a user clicks the &amp;quot;Email&amp;quot; button on the form (within InfoPath)...&lt;/strong&gt;&lt;br /&gt;- Generate a new email message within MS Outlook with certain selected fields within the form&amp;nbsp;as the body of the email in rich text formatting&lt;br /&gt;(I already figured this part out and it works fine by only using the variables for the fields that I want to be generated within the body of the email.)&lt;br /&gt;- Generate a separate email message with other certain selected fields from within the form as an email attachment.&lt;br /&gt;- Automatically bold certain items within both generated emails.&lt;/p&gt;
&lt;p&gt;At this point, I do not know how to write the code for the last two things that I would like InfoPath to perform. Any help or suggestions will be greatly appreciated.&lt;/p&gt;</description></item></channel></rss>