Sending multiple emails

D

dsmerda

I work for a company that has multiple field supervisors that handle
different areas. What I want to do is that when a person puts in a certain
number in a different field in the form, it will send out an email to a
predifined list.

For example:

if the person puts in the number 34, it will mail to person A, B, & D
if the person puts in the number 35, it will mail to person A, C, & E

Any help would be great
 
P

Patrick Halstead [InfoPath MVP]

Hi DSmerda,
Yes, you can add a rule to do this or write some code. Set up two e-mail
submit adapters (Tools->Data Connections->Add->E-mail...) and then add a
button to your view and double click. Change label to "Send" or whatever.
Make sure Rules and Custom Code is selected in the Action dropdown. Click
Rules and Add. Click Set Condition and make it "if the field is 34" (where
field is the data field on your form that controls the value you mentioned
below).
Add an Action to Submit using a Data Connection and choose the one that
sends to person A, B, & D. Add another rule with the other condition and
submit adapter. This hardcodes the logic in rules, which makes it more
difficult to dynamically change the To: on the e-mail send, but it doesn't
require code.
Good luck!
Patrick
http://www.infopathdev.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top