use render to string for attachment content