Publish Infopath form to email recipients programmatically

Hi,

How to Publish Infopath form to email recipients programmatically. User information should get from another list.

Any help would be appreciated.

Thank you.
aaedlaAsked:
Who is Participating?
 
Clay FoxConnect With a Mentor Director of Business IntegrationCommented:
There are a couple ways to do this.

basic InfoPath function is to have a field where you put the email addresses, separated by semicolons like in Outlook.  These can certainly be queried from an external source and then use concat function to put them together with the ;
create a submit data connection for email.
you will need to choose if you want to send the form attached or just send the current view, which you can customize one specifically for the email body.
just follow the wizard.

the downsides to this are that the client must have outlook and they have to acknowledge the email being sent (No Spam).
if the form is web based it will be sent via SharePoint.

you can also generate email via SharePoint workflow, but this would all be configured in SP and triggered on a submission to a list or library.

I use SQL databases for my info and have a web service to email via SQL for notifications, etc.

you can also use code in the form to send via SMTP, etc.
0
All Courses

From novice to tech pro — start learning today.