Use a people picker with an email connection in InfoPath

Watch this demo video of how to retrieve email addresses from a people picker control for use in an email submit data connection to be able to send a simple email message through an InfoPath browser form in SharePoint 2013.

The following InfoPath 2013 with SharePoint 2013 video demonstrates how email addresses that are extracted from a people picker can be used with an email submit connection on an InfoPath form to send a simple email message in SharePoint 2013.

InfoPath 2013 with SharePoint 2013 video tutorial transcript

In a previous video tutorial, I already showed you how you can use an email submit data connection to send a simple email from an InfoPath browser form in SharePoint. In that video tutorial, I used a text box to enter email addresses to send emails to. If you want to make it easier for users to be able to enter email addresses, you can use a people picker control instead of a text box control. And that is exactly what this solution is going to demonstrate.

So here I'm in SharePoint 2013, where I'm currently logged in as Jane Doe, and where I've already published an InfoPath form template to this SharePoint form library. So if I click new document to add a new form, you'll see that as soon as the InfoPath form opens, it will display the InfoPath form that I created in the previous video tutorial, except for in this case I have a people picker control here instead of a text box control.

If you have no idea what I'm talking about, you can visit my main YouTube channel where you can find the video tutorial, or you can visit my website at and go to the InfoPath 2013 videos page where you can also find the video tutorial.

This solution makes use of a technique I discussed in recipe 67 of InfoPath 2010 Cookbook 2 or recipe 74 in InfoPath 2013 Cookbook 2. And what that technique does is it looks at the accounts that have been entered into a people picker control and then retrieves the email addresses for those accounts. In this case, in this solution, the email submit data connection is going to be pulling in those email addresses from this people picker control using the technique I discussed in those two recipes.

So all I have to do now is just instead of email addresses I'll enter some names of users here. I'll take john.doe and clovis.carvalho, and then check their names, enter a simple message, and then submit the form. Once the email has been sent, I'll go check on the email and see what it contains.

So here I've got the email open. As you can see, it was sent to John Doe and Clovis Carvalho, it was submitted by Jane Doe, and this is the message that I entered into the body rich text box control.


Related InfoPath Articles:


Copyright: This article may not be used on web sites (whether personal or otherwise), copied, disseminated, altered, printed, published, broadcasted, or reproduced in any way without an expressed written consent. The techniques demonstrated in this article may be used within any Microsoft InfoPath project. This article is provided without any warranties. Copyright for this article is non-transferrable and remains with the author.