I have a simple dropdown menu in my form with a case switch to select the appropriate email address to send the submission to. I took this directly from the plugin docs. The email is sent with no problems using the normal email methods. Just seems to be when using the eval php.
email to eval code:
email to eval code:
Code:
$contact = $this->data['contact___reason_for_contact'];
switch ($contact) {
case 'general':
$email = 'tim@addy1.com';
break;
case 'booking':
$email = 'tim@addy2.com';
break;
case 'catering':
$email = 'tim@addy3.com';
break;
}
return $email;
echo $email;