function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Drag&Drop Attachments Functionality when Sending Emails

Hi everyone,

I hope you are well.

We want to provide the possibilty to our users to drag and drop attachments into an email. Ideally the standard "send email" layout remains and only the bottom section to "attach file" changes into a drag&drop section. Rebuilding the layout via VF shouldn`t be the problem and I know a 5MB VF upload apply which is fine. However, I am actually unsure on how to achieve the drag&drop part.

Does anyone have any guidance ?

Hi N.J,

Thanks for the quick response.

I tried this package already. Unfortunately, they do not offer the functionity when sending emails. It only offers it for standard/custom objects.

Hi DeafForce,

It is possible and can be done by using HTML 5 drag and drop feature with visualforce page. Using HTML we can natively acheive this functionality as well as within Salesforce governor limit. Salesforce has very good support for Javascript. One of the exapmple is javascript remoting.