Insert file into greeting field with Smarty
The length limit of the greetings syntax can be quite tricky, especially when using different languages with gender specific greetings.
Luckily there is the extension More Greetings that provides

additional greeting fields
no length limit for syntax
more possibilities such as using API calls in the syntax
a basic syntax checker