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
ItruItru 

Outbound Email attachment limitation - apex

Hi everyone,
I would appreciate if you could help me to find out what are the limitations that SF put for outbound email messages with attachments size.
Currently, I'm using the SingleEmailMessage method using Apex, to add all the attachments in a single case, and send it to a contact email.
I little confused, I saw a lot of documentation that talked about 10MB for all the attachments inside the same email and 3 -5 MB for a single attachment - beyond that - It converts all the attachments into .html links on an open and insecure servlet.
I tried it out with the "trial and error" method with different attachments size.
I took some attachments that their sum was 16MB together and succeeded to see the email attachment (not the link - the real attachment) in my Gmail account.
But on 18MB it failed and supplied to me only the link to the servlet.
With one attachment I succeeded to see if it was 7MB but beyond it - it just sent me those links again.
The weird thing is that in another case I could see a single file of 15MB!  (Same Email Template).

Can someone here please help me to understand it?
What is the size that SF can commit to, on outbound email attachments - before it converts them to .html links?
If it does convert it to .html links - what is the limitation now?
Hope I was clear enough and thanks in advance,
Itai.