Use the java action ‘CopyAttachmentContent’ from the Email Connector module
if you are using the old email module, the old module should also have the java action with the same name