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
Salvatore MignognaSalvatore Mignogna 

Email Attachment

Hi all,


I'm developing an email service. I need to take the attachment of the email (if any) but I have to ignore the binary content into the email body. For example, with following code:

    System.debug('#### detected binary attachment!');


It detects both binary code into the email body (for example images) and pdf files, if any.

How can I ignore binary content into Email body?

Someone can help me, please?