Fixed support for attached files to emails