[SOLVED] Email templating with Fluid support?

Yes, the one posted in @dimitriadisg’s last example is wrong, but the first example looks correct to me, no?

Ooops, you’re right, I tested again with <img src="{f:uri.resource(path: 'Images/email-header.jpg', package: 'Company.Site')}" width="600" alt="" /> right now, still the image is invalid.

Now I did another test just out of curiosity:
Like I said before, the image is loaded in the E-mail layout (it’s the header image in the general template), I moved the image with inline syntax into the template of the e-mail and now it works.

Meaning, this works:

<f:layout name="Default" />

<f:section name="Main">
    <img src="{f:uri.resource(path: 'Images/email-header.jpg', package: 'Company.Site')}" width="600" alt="" />
</f:section>

but, using <img src="{f:uri.resource(path: 'Images/email-header.jpg', package: 'Company.Site')}" width="600" alt="" /> inside the Default.html does not work

Weird, maybe Fluid gets confused with all the {} syntax because of the css styles I have in the email <style> definition.

Yes, I did a final test, got rid of all the CSS code, so the layout has no {} symbols in it (other than fluid syntax) and now the inline syntax works properly.

Anyway, thanks everyone for the help, I’ll see if Swiftmailer is flexible enough to work with included styles, otherwise I’ll stick to the tag syntax