Hi -
I hope someone can assist me. I am sure I just did something stupid and it is a trivial issue.
I am trying to have the form results sent to different email addresses based on a drop down selection.
It works fine if I have all of the results simply go to a list of emails but I need it to go to person A if they select X, person B if Y, etc.
I already tried to do it with the code in the wiki, changing the field names. I pasted the code from the wiki into the "Email to (eval)" field in the plugin.
Am I missing something?
Email addresses had the @ removed to allow posting
$reason = $this->data['register___reason'];
switch ($reason) {
case 'memberservice':
$email = 'mike ATdomainname.com';
break;
case 'loan':
$email = 'mike AT domainname2.com';
break;
case 'mortgage':
$email = 'mike AT domainname3.com';
break;
case 'other':
$email = 'info AT domainname4.com';
break;
}
return $email;
Joomla version 3.4.1
Fabrik ver 3.3.2
Thanks,
Mike
I hope someone can assist me. I am sure I just did something stupid and it is a trivial issue.
I am trying to have the form results sent to different email addresses based on a drop down selection.
It works fine if I have all of the results simply go to a list of emails but I need it to go to person A if they select X, person B if Y, etc.
I already tried to do it with the code in the wiki, changing the field names. I pasted the code from the wiki into the "Email to (eval)" field in the plugin.
Am I missing something?
Email addresses had the @ removed to allow posting
$reason = $this->data['register___reason'];
switch ($reason) {
case 'memberservice':
$email = 'mike ATdomainname.com';
break;
case 'loan':
$email = 'mike AT domainname2.com';
break;
case 'mortgage':
$email = 'mike AT domainname3.com';
break;
case 'other':
$email = 'info AT domainname4.com';
break;
}
return $email;
Joomla version 3.4.1
Fabrik ver 3.3.2
Thanks,
Mike