Share Your Experience With Others

How to check the size of email body+Attachments in Apex

Hello SFDC Developers, Here is the code to check the size of email body and its attachments. You can restrict the user to upload the specified limit by using this code.

attachmentsizeclass

After getting the status value you can send an email to the user of size limit.

Leave a comment