1
0
-1

Hi,

 

We have a form which the customer fills in and goes to an internal email address - the people who have requested the form are asking for it to be sent to a different email address when a certain option (as a drop down) is selected.

Is this possible, and could someone point me to the documentation that would clarify how to do this?

Thanks

Richard

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi Richard,

       

      The easiest way to do this (and have full control of the destination) is to create a Groovy delivery service that does this. 

       

      I've added a code sample below. This script depends on a two service parameters:

      • emailContent: the body of the email. You can use Velocity markup to merge content from your form submission in the text

      • emailSubject: the subject of the email

       

      The email address is (for this example) retrieved from the formDataMap. You will have to ensure that the correct data extract mapping has been configured for your form.

       

      I hope this answers your question.

       

      Jeroen

       

        CommentAdd your comment...