Hi CF-Devs out there!
My problem is, that when attaching files via cfmailparam - no
matter if inline or not - and using a filename that contains or a
non 7bit-ASCII character or a simple space, the filename is not
displayed correctly in Outlook nor Thunderbird. I am sure that this
topic has been discussed here earlier but I really don't find any
topic when using the Forum Search function... so please help anyway
:) I am still using CFMX 6.1
😞
My code is the following:
<cfmailparam type="#variables.attachments
.getContentType()#"
file="#variables.attachments.getFilename()#"
disposition="#this.dispositionType(variables.attachments
.isInline())#"
contentID = "#variables.attachments.getCid()#">
When I revise the generated email code then I find the
following:
Content-Type: application/octet-stream
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename*2=nger.csv;
filename*0*=UTF-8''emailempf; filename*1*=%c3%a4
Content-ID: <DEE13419-D022-9396-C8A4DF2AAAA7C4EF>
You can see that the filename (emailempfänger.csv)
breaks up into several pieces which according to
RFC 2231 is a
valid format but obviously is not interpreted correctly by e.g.
Outlook. Or am I missing something else?
I would appreciate your help. Thanks in advance.
Buergermeister