Hi All,
Product Versions: InfoPath 2010, Visual Basic 2010 Express, SharePoint 2010 (Enterprise Edition)
I recently published a form on our SharePoint 2010 intranet. However, I want the Submit action to be sent as e-mail. To eliminate the recipients pop-up, I found that it would be more efficient to use C# or VBA code for the button click.
I referred to various forums:
http://www.infopathdev.com/forums/p/3521/14029.aspx#14029
I'm looking at the code for C# in that thread, and I don't understand this code:
EmailAdapter oEmail = (EmailAdapter)thisXDocument.DataAdapters["EmailConnectionName"];
The "EmailConnectionName" to be precise. Does that mean that is the name of the email connection defined in the Submit options for the button? Or is that referencing something else?
Moreover, I don't even know if this code will work for what I want to do--which is sending the form as the body in the e-mail.
Any help would be greatly appreciated.
Daniel