<?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>Re: Adding Cc:, Bcc:, and Introduction to email</title><link>https://www.infopathdev.com:443/forums/thread/4030.aspx</link><pubDate>Sat, 17 Feb 2007 22:29:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4030</guid><dc:creator>cchenning</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4030.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4030</wfw:commentRss><description>Shaker,&lt;br /&gt;Thank you so much, great answer!!!&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Adding Cc:, Bcc:, and Introduction to email</title><link>https://www.infopathdev.com:443/forums/thread/4029.aspx</link><pubDate>Sat, 17 Feb 2007 06:45:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4029</guid><dc:creator>shekar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4029.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4029</wfw:commentRss><description>Hi cchenning&lt;br /&gt;var mailid ="";&lt;br /&gt;for(index=0;index&amp;lt;rgrecpient.length;index++)&lt;br /&gt;	{&lt;br /&gt;		rgrecpient[index]= rgrecpient[index].concat(";");&lt;br /&gt;		mailid = mailid + rgrecpient[index];&lt;br /&gt;	}&lt;br /&gt;&lt;br /&gt;//CC and BCC's&lt;br /&gt;oEnvelope.CC = mailid;&lt;br /&gt;oEnvelope.BCC = mailid;&lt;br /&gt;&lt;br /&gt;Hope this helps you.</description></item><item><title>Re: Adding Cc:, Bcc:, and Introduction to email</title><link>https://www.infopathdev.com:443/forums/thread/4028.aspx</link><pubDate>Fri, 16 Feb 2007 19:47:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4028</guid><dc:creator>cchenning</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4028.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4028</wfw:commentRss><description>OK, I'll accept that I cannot add Introduction, I'll even forget the Bcc:.&lt;br /&gt;&lt;br /&gt;I would still like to add a Cc: and a hard-coded email address to the beginning of the "To:".&lt;br /&gt;&lt;br /&gt;How would I go about doing this using the above code as a basis?</description></item><item><title>Re: Adding Cc:, Bcc:, and Introduction to email</title><link>https://www.infopathdev.com:443/forums/thread/4027.aspx</link><pubDate>Fri, 16 Feb 2007 14:05:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4027</guid><dc:creator>shekar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4027.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4027</wfw:commentRss><description>Hi cchenning&lt;br /&gt;&lt;br /&gt;Yes you can send CC and BCC but you can not send &lt;br /&gt;Introduction with the above code. &lt;br /&gt;&lt;br /&gt;With Infopath DataConnections you can send Introduction.&lt;br /&gt;Hope the following code will help you.&lt;br /&gt;&lt;br /&gt;var EmailAdapter = XDocument.DataAdapters[&amp;quot;Email&amp;quot;];&lt;br /&gt;EmailAdapter.To = &amp;quot;mailId&amp;quot;;&lt;br /&gt;EmailAdapter.BCC =&amp;quot;mailId&amp;quot;;&lt;br /&gt;EmailAdapter.CC =&amp;quot;mailId&amp;quot;;&lt;br /&gt;EmailAdapter.Subject =&amp;quot;SubjectText&amp;quot;;&lt;br /&gt;EmailAdapter.Intro =&amp;quot;IntroductionText&amp;quot;;&lt;br /&gt;EmailAdapter.Submit();</description></item><item><title>Adding Cc:, Bcc:, and Introduction to email</title><link>https://www.infopathdev.com:443/forums/thread/1856.aspx</link><pubDate>Fri, 16 Feb 2007 13:12:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1856</guid><dc:creator>cchenning</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1856.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1856</wfw:commentRss><description>I have the code below for my "Send eMail" button.  It works, but I would like to add a Cc:, Bcc, and Introduction.  I would also like to add a hard-coded email address to the beginning of the "To:"&lt;br /&gt;&lt;br /&gt;Why can't I just change &lt;br /&gt;&lt;br /&gt;oEnvelope.To = rgRecipients.join(" ;");&lt;br /&gt;&lt;br /&gt;    &lt;i&gt;to&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;oEnvelope.Cc = rgRecipients.join(" ;");&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What is the secret to making this work?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;----------------------------------------&lt;br /&gt;&lt;br /&gt;function SendEmailBtn::OnClick(oEvent)&lt;br /&gt;{&lt;br /&gt;createEmail();&lt;br /&gt;}&lt;br /&gt;function createEmail()&lt;br /&gt;{&lt;br /&gt;var xmlContributors = XDocument.DOM.selectNodes("/iss:issue/iss:contributors/iss:contributor");&lt;br /&gt;var xmlContributor;&lt;br /&gt;var xmlTitle = XDocument.DOM.selectSingleNode("/iss:issue/iss:title");&lt;br /&gt;var rgRecipients = new Array();&lt;br /&gt;&lt;br /&gt;while (xmlContributor = xmlContributors.nextNode())&lt;br /&gt;rgRecipients.push(getNodeValue(xmlContributor.selectSingleNode("iss:emailAddressPrimary")));&lt;br /&gt;&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;var oEnvelope = XDocument.View.Window.MailEnvelope;&lt;br /&gt;&lt;br /&gt;oEnvelope.To = rgRecipients.join(" ;");&lt;br /&gt;oEnvelope.Subject = getNodeValue(xmlTitle);&lt;br /&gt;oEnvelope.Visible = true;&lt;br /&gt;}&lt;br /&gt;catch (ex)&lt;br /&gt;{&lt;br /&gt;XDocument.UI.Alert(ex.description);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;</description></item></channel></rss>