Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to increase subject field length in email notifications

sandeep299
Tera Contributor

I just increased the max length in Table { Email [sys_email] }to 255 and then to 1000 still in my email logs the subject line message is get truncating . Am i missing any thing ...plz help me out guys

Thanks&Regards

sandeep

7 REPLIES 7

Gurpreet07
Mega Sage

Are you getting complete subject in actual email when you receives it into your inbox ? If not , you may need to change the length of subject field on email template or email notification table. Alternatively you   could set subject using mail script.


Scripting for Email Notifications - ServiceNow Wiki


Thanqqq for your reply


geoffcox
Giga Guru

I suspect many email programs can't handle subjects longer than 255. And some sources advise that you should respect RFC2822, where messages SHOULD be no more than 78 characters.


Well, its a bit more complicated and depends on the Email Client.


The 78 Characters may be excceded if the Subject is split into multiple lines:



What is the email subject length limit? - Stack Overflow



Bottom line: it makes sense that the subjects gets no longer than the default 160 characters.



If this post was helpful, I would appreciate if you marked it as such - thanks!

Best
Daniel