Limit email attachment size

amkatulak
Giga Expert

Hi Everyone,

Does anyone know of a way to limit the attachment size in an email message?   Our mail system allows up to 10MB.   The other day an approval had a document that was over 20 MB attached to it.   This caused the system to error out with a send-failed message and the user never received the approval message.

What I would like to happen is:

If an email message is over 10 MB, strip out any and all attachments and add a note to the body informing the recipient that the message contained attachments that were too large to be delivered, and to log-in to the system to view them.

Any ideas?

Thanks!

6 REPLIES 6

There doesn't appear to be an event associated with this, and the message seems to be pretty generic "Maximum combined attachment size exceeded. (max:10240 bytes). One or more attachment records not created."


The source field is the sys_id of the email that was sent out, so that could be a place to explore


Adam,



This being the case, you could do a scripted notification that is triggered when a system log is entered containing that text. You could then do a GlideRecord query on the sys_email table using the source as the sys_id then take the email.from to generate the notification.



Thanks!