send different replymails

arawolf 26 Apr, 2015
Can chronoforms sent different reply mails. For example In the contactform there are some radio buttons. If a user chooses in the contactform button 1 then he receives a reply mail with tekst "a", when he chooses option 2 then he receives another text in the reply mail.
GreyHead 26 Apr, 2015
Hi arawolf,

I'd probably do this with a Custom Code action and add PHP/HTML to build different email templates (or parts of templates):
<?php
switch ($form->data['radio_99'] ) {
  case 'some_value':
    $form->data['email_template'] = ". . . {some_input} . . .";
    break;
  case 'some_other_value':
    $form->data['email_template'] = ". . . {some_other_input} . . .";
    break;
} 
?>
Then add {email_template} to the Email template.

Bob
This topic is locked and no more replies can be posted.