Hi guys,
Okay, here's the new code. I'll include this in the next release, but for now you'll need to manually edit the /global/code/emails.php file. There, replace the _ft_extract_email_attachment_info function (starting at line 1392) with the following:
[EDIT - code removed. See next post for explanation]
Once that's done, in your email template, use this syntax:
The "fieldvalue" attribute is new. It does what you want: looks at the value stored in the field, then uses THAT as the file attachment location. In other words, in this example the field with the field name "field1" must contain the relative path of the file to attach.
Let me know if you have any trouble!
- Ben
Okay, here's the new code. I'll include this in the next release, but for now you'll need to manually edit the /global/code/emails.php file. There, replace the _ft_extract_email_attachment_info function (starting at line 1392) with the following:
[EDIT - code removed. See next post for explanation]
Once that's done, in your email template, use this syntax:
Code:
{$attachment fieldvalue="ANSWER_field1"}
The "fieldvalue" attribute is new. It does what you want: looks at the value stored in the field, then uses THAT as the file attachment location. In other words, in this example the field with the field name "field1" must contain the relative path of the file to attach.
Let me know if you have any trouble!
- Ben