-
Okay, using VB.NET and IP2007:
' Get the e-mail submit data connection configured for the form.
Dim mySubmit As EmailSubmitConnection = DirectCast(Me.DataConnections("Main submit"), EmailSubmitConnection)
' Set To property to literal string value.
mySubmit.To.SetStringValue("someone@example.com")' Submit ...
-
IP 2007
Mike
-
I'm sorry, I shouldn't have abreviated. Are you using InfoPath 2003 or InfoPath 2007?
-
Basically, what I am doing is to submit the form, not using code, to a SharePoint List, which I am doing now with success. What I need to do is to email a confirmation email to a person requesting SharePoint training. I can do that using the current data connection. The problem is that the "To" field in the data ...
-
Well, I've not actually done this -- only read about it in Patrick's book (which I reallly recommend -- it is loaded with information and samples). The general structure suggested in his sample is to use the HEAD method of System.Net.HttpWebRequest to see if the file exists -- but I wonder.... What about adding a date to your form (you ...
-
Hi--
Is there a reason you've set up a data connection to submit via email if you wish to submit using code? I'm just wondering -- did you have changes you wanted to make outside of the capabilities of the built-in email submit? If so, what are they? What version of IP are you using?
-
Thanks, Greg! -- my mistake, I thought it did....
-
So I tried it like I stated above, and it still will not work. The column validation fields will not update when an item is selected in the corresponding column. True = Column is blank for the validation fields. Default value is true. The rules for changing the values of the validation fields are in the properties of the same ...
-
How can I rename an attachment? If attached file is "FileA.txt" in the attachment control. How can it be renamed "FileB.txt"
-
Exactly.
You coulde have a validate field by column or section.
Then just check your validate fields on submit.