I want to send an attachment file only when the radio button ist active.
I try to do this over the email template like this:
{if $ANSWER_post}
<tr>
<td style="font-weight: bold">Angebot per Post</td>
{$attachment file="../../PDF/holzstatik.pdf"}
<td>{$ANSWER_post}</td>
</tr>
But the attachment file is always send. Is there a solution. I don't found it in the forum.
I have found some statements in the forum, that to do this over filters is the better way.
I try to do this over the email template like this:
{if $ANSWER_post}
<tr>
<td style="font-weight: bold">Angebot per Post</td>
{$attachment file="../../PDF/holzstatik.pdf"}
<td>{$ANSWER_post}</td>
</tr>
But the attachment file is always send. Is there a solution. I don't found it in the forum.
I have found some statements in the forum, that to do this over filters is the better way.