May 16th, 2011, 4:56 AM
Hey Russell,
Actually, I don't believe so... excellent question, though.
The email attachment option for the Swift Mailer module was kind of grafted on. It doesn't get parsed properly within Smarty: the code just parses the email template content for that particular string, then appends the appropriate file. So the Smarty if statement won't be acknowledged.
I forget the reason why I did it this way: there was a good reason at the time, since it's clearly crumby. I'll definitely have to revisit this.
- Ben
Actually, I don't believe so... excellent question, though.
The email attachment option for the Swift Mailer module was kind of grafted on. It doesn't get parsed properly within Smarty: the code just parses the email template content for that particular string, then appends the appropriate file. So the Smarty if statement won't be acknowledged.
I forget the reason why I did it this way: there was a good reason at the time, since it's clearly crumby. I'll definitely have to revisit this.
- Ben