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

SN University told me to leave a comment; thanks for your expertise!

Ramkumar Thanga
Mega Sage

Thanks for the prompt response.