However because the topic is M-Files API, I'll attach quick & dirty example how to push an e-mail to M-Files using the client API and VBA.