I would like users to apply for a training course buy filling out a form, then I would like a notification to be sent to the user, the training company and the admin of the site.
What would be the best way to achive this, I have looked at this code but didnt understand it.
<?php
add_filter("gform_autoresponder_email", "change_notification_email", 10, 2);
function change_notification_email($email, $form){
//applying notification routing to form Id 2
if($form["id"] != 2)
return $email;
//creating email list from fields 2 and 3.
return $_POST["input_2"] . "," . $_POST["input_3"];
}
?>
many thanks