The ability to improve the plug-in e-mail or variant solutions

GorYa

Member
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>
 
Can you not simply use the plain message box, or a J! article, and use placeholders like {yourtable___yourelement}?

-- hugh
 
Thank you! This solution helped. Tell me how to fix file type links in the email, since the inactive link comes form /images/stories/folder_author/date/namefiles.doc, and I would like to link was short type namefiles.doc?
 
Thanks, but it's a long way to go. Currently partially implemented using html code (short link to become active and available for download), you only need to set a variable to display the name. My knowledge is not enough and quickly write failed
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top