email - cfmailparam disposition filename does not work in outlook -


i have simple example sending image attachment using coldfusion 11 cfmail tag.

<cfmail to="example@domain.com" from="example@domain.com" subject="test" type="html"> <cfmailparam file="www.example.com/image.png" disposition="attachment; filename=""test.png"""> </cfmail> 

i want attachment called "test.png" when viewed in recipients email client.

it works fine when receive email in gmail, outlook 2013 (and office 365 web client) retains "image.png" attachment name.

have correctly made use of "disposition" attribute?

if disposition not working you, try combining file , content instead.

<cfmailparam     file="test.png"     content="#fileread( 'image.png' )#" > 

more details here.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -