Code for sending to multiple email addresses - InfoPath Dev
in

InfoPath Dev

Code for sending to multiple email addresses

Last post 12-09-2005 09:17 AM by janicethorne. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 12-09-2005 06:40 AM

    Code for sending to multiple email addresses

    I am trying to set up a form to send to two separate individuals when the form is submitted. I also need to be able to set up the form to be able pull one of the email addresses from another field on the form. I know this is possible with code, but don't know what the code is or where to put it once I have it. I am new to coding and having trouble with even how to get to the code-behind pages. Can anyone help? I appreciate any assistance. Thank you.

    ~If you don't have time to do it right the first time, when will you have time to fix it?~
  • 12-09-2005 06:55 AM In reply to

    Re: Code for sending to multiple email addresses

    Hi,

    Yes it's possible here is the Jscript code:

    http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1006
    http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=94

    With C#:

    http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1290

    ++

    Thierry
    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
  • 12-09-2005 07:03 AM In reply to

    Re: Code for sending to multiple email addresses

    You can do this without using code.

    1) Double-click on your Submit button (make sure that you have chosen "Submit" instead of "Rules or custom code" from the action drop down)
    2) click on "Define Action parameters..."
    3) Choose "Enable Submit commands and buttons" from the two radio buttons
    4) Click the "Add..." button
    5) In the To: field use the concat() function like this: concat( "[email protected];" , emailField )
    6) Edit other sections as necessary
    7) Click Next, Finish, Ok, Ok.

    Hope this helps!

    By the way, in order to get to the "code-behind" pages go to Tools -> Programming -> Microsoft Script Editor

    ---------------
    Matt Faus
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 12-09-2005 09:17 AM In reply to

    Re: Code for sending to multiple email addresses

    Thanks guys. This works like a charm. This was such a simple fix and I had no idea how to do it! I feel like I haven't even tapped the surface of this software.:-)

    ~If you don't have time to do it right the first time, when will you have time to fix it?~
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.