Send attachments and take out outputfields to separate file