Question1Replies120Views×Close popoverKampelly Ramya (Ramya0457) Incessant Technologies PVT LTD Senior Technical Lead Incessant Technologies PVT LTD IN View Profile Ramya0457 Member since 2010 13 posts Incessant Technologies PVT LTD Posted: July 25, 2019Last activity: July 25, 2019Posted: 25 Jul 2019 2:08 EDTLast activity: 25 Jul 2019 3:02 EDT 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 agoPosted: 25 Jul 2019 3:02 EDT×Close popoverHarsh Kumar (Harsh_Kumar) Acel Solutions Harsh Kumar Acel Solutions IN View ProfileHarsh_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.