Unfortunately the plugin e-mail is not possible to select items from which information should be sent by mail and would like to ask how this can be done.
There are elements: name_element1, name_element2, name_element3, name_element4, but I need to come only the elements 2 and 4. Below is the source code template, and I would like to know (as the weak in php) where and how variable it is necessary to make? Thank you
<table>
<?php
foreach ($this->emailData as $key => $val)
{
// Lets see if we can get the element name:
list($label, $thisRaw, $show) = tryForLabel($formModel, $key, $raw, $info);
if (!$show)
{
continue;
}
echo '<tr><td>' . $label . '</td><td>';
if (is_array($val)) :
foreach ($val as $v):
if (is_array($v)) :
echo implode("<br>", $v);
else:
echo implode("<br>", $val);
endif;
endforeach;
else:
echo $val;
endif;
echo "</td></tr>";
}
?>
</table>
There are elements: name_element1, name_element2, name_element3, name_element4, but I need to come only the elements 2 and 4. Below is the source code template, and I would like to know (as the weak in php) where and how variable it is necessary to make? Thank you
<table>
<?php
foreach ($this->emailData as $key => $val)
{
// Lets see if we can get the element name:
list($label, $thisRaw, $show) = tryForLabel($formModel, $key, $raw, $info);
if (!$show)
{
continue;
}
echo '<tr><td>' . $label . '</td><td>';
if (is_array($val)) :
foreach ($val as $v):
if (is_array($v)) :
echo implode("<br>", $v);
else:
echo implode("<br>", $val);
endif;
endforeach;
else:
echo $val;
endif;
echo "</td></tr>";
}
?>
</table>