I have defined in E-mail Template File Name Pattern like this:
${object.name.lower().replace(',','').replace(' ','').replace('"','').replace("'","")}_report
then document is generated as expected with attachment
If filename in attachment contains non-english characters receiving party has e-mail with broken attachment.
If filename in attachment contains non-english characters receiving party has e-mail with broken attachment.
Sample failing attachment file name:at_grāmatvedība_un_audits_report.pdf