Is there a way to add a popup about the size limit of email content when it exceeds ?

Ramkumar Thanga
Mega Sage

Hi All,

 

When the email body reaches the maximum size, the email was not sent out with the error message as "552 5.3.4 message size exceeds fixed maximum message size". So is there a way to add a popup about the size limit of email content when it exceeds the defined message size while sending the email from compose email option in ServiceNow.

 

 

Thanks!

Ramkumar

1 ACCEPTED SOLUTION

@Ramkumar Thanga 

you can show an alert when compose email opens that popup

check this KB for message you want to show

Email server size limit prevents emails from being sent or received 

Create this new UI script

addLoadEvent(hideButtonsAdd);

function hideButtonsAdd() {
    if (document.URL.indexOf('email_client.do') != -1) {
        alert("Please don't exceed 10MB email size"); // give your message here
    }
}

AnkurBawiskar_1-1747991203550.png

 

Output:

AnkurBawiskar_0-1747991167252.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

11 REPLIES 11

Yes, you can make a display to always show an warning to keep minded about size of attachments but you cannot do validations onChange.

 

Regards,
Sumanth

Ankur Bawiskar
Tera Patron
Tera Patron

@Ramkumar Thanga 

This is a platform OOTB limitation from ServiceNow.

Please inform customer about this and ask them to reduce the email body content.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar 

Just want to popup an attention message while composing email from a case/incident.

The attention message holds the limitation details.

Is it possible from the UI action "Compose email" ?

 

Thanks!

Ramkumar

@Ramkumar Thanga 

you can show an alert when compose email opens that popup

check this KB for message you want to show

Email server size limit prevents emails from being sent or received 

Create this new UI script

addLoadEvent(hideButtonsAdd);

function hideButtonsAdd() {
    if (document.URL.indexOf('email_client.do') != -1) {
        alert("Please don't exceed 10MB email size"); // give your message here
    }
}

AnkurBawiskar_1-1747991203550.png

 

Output:

AnkurBawiskar_0-1747991167252.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

How can I make this workable in workspace ?