Joomla Fabrik电子邮件插件:发送电子邮件至(eval)

时间:2016-04-01 14:36:09

标签: joomla

我有一个Fabrik表单,应根据用户在前端选择框中所做的选择选择要邮寄的电子邮件地址。我使用的代码直接来自Fabrik文档,但似乎没有起作用:

我的表格价值和标签是这样的:

general => General
booking => Booking
entertainment => Entertainment

<?php
$contact = $this->data['contact___reason_for_contact'];
    switch ($contact) {
    case 'general':
        $email = 'email1@mail.com, emailw@mail.com';
        break;
    case 'booking':
        $email = 'email3@mail.com, email4@mail.com';
        break;
    case 'catering':
        $email = 'email5@mail.com, email6@mail.com';
        break;
}
return $email;
?>

修改:链接到fabrik docs

0 个答案:

没有答案