Question1Replies95Views Ramya0457 Member since 2010 9 posts Incessant Technologies PVT LTD Posted: 1 year agoLast activity: 1 year 2 months ago Closed How to get the size of an email with attachmentsWe have a requirement in our application:Display a warning message, if overall email item size exceeds more than 20 MB, once user clicks on ‘Send Email’ button.How to i get the size of an email with attachments.Could some one please help me on getting this. Case Management ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Posted: 1 year agoHarsh_Kumar Acel Solutions replied to Ramya0457Hi Ramya0457 There is not OOTB way to ind it out, instead you can use some of the Java Function to find out the attachment size and the mail body size. Step 1 : get the Mail Body size by using ootb function "sizeof()" Step 2 : get the Attachment size by using Java function "getFileSizeBytes(file)" ** file need to be passed as a parameter to this function, and returns size in Bytes. Later you can convert it from Byte to KB/MB. Step 3 : Sum up the value retrieved from Step 1 and Step 2 and can implement validation.