I have a requirement to fetch order attachment and email it on save event. Also if possible a URL to an attachment in the same email. I am trying to use CL_CRM_DOCUMENTS class & method SEND_DOCUMENTS but it is popping the standard send email screen and then we need to click on send button to process it. As my code needs to be run in the background how to handle this situation.
Or is there any other way to send existing attachment as email.