Bug 871852 - [Email] Email sending fails silently when sending large (fo...

...r an email) files (ex: 25 MB), No limit on max attachments size

New PR is raised, as there were some more lint errors and some issue with a new commit.

Please check.