regarding sending a dynamic image as attachment in email
How to send a dynamic image as attachment in email in mendix?
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
Hoang To Duc