<?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: Error Trap for Email</title><link>https://www.infopathdev.com:443/forums/thread/2735.aspx</link><pubDate>Wed, 12 Jul 2006 14:55:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2735</guid><dc:creator>Suresh Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2735.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2735</wfw:commentRss><description>Hi, &lt;br /&gt;&lt;br /&gt;After you create the connection (email), write the following code in your onclick event   &lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;var Email = XDocument.DataAdapters("Submit");&lt;br /&gt;Email.To = "agni";&lt;br /&gt;Email.CC = "agni";&lt;br /&gt;Email.Subject = "Subject";&lt;br /&gt;Email.Intro = "Email body";&lt;br /&gt;Email.Submit();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;Hope this will help You.&lt;br /&gt;&lt;br /&gt;Thank you&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Error Trap for Email</title><link>https://www.infopathdev.com:443/forums/thread/1412.aspx</link><pubDate>Wed, 12 Jul 2006 12:42:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1412</guid><dc:creator>davers</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1412.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1412</wfw:commentRss><description>Hi everyone, I'm using the following code to submit:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;function XDocument::OnSubmitRequest(eventObj)&lt;br /&gt;{&lt;br /&gt;var oEmail = XDocument.DataAdapters("Email Submit");&lt;br /&gt;oEmail.To = "dmorri18@ford.com";&lt;br /&gt;//oEmail.CC = xyz@abc.com;&lt;br /&gt;oEmail.Subject = "Subject";&lt;br /&gt;oEmail.Intro = "Email body";&lt;br /&gt;oEmail.Submit();&lt;br /&gt;//If the submit operation is successful, set&lt;br /&gt;//eventObj.ReturnStatus = true;&lt;br /&gt;// Write your code here&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;But I'm getting an error saying that the event handler didn't work...what is that and how do I create it? Sorry I'm such a noob...&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;&lt;br /&gt;Dave</description></item></channel></rss>