Standard Email Signature/Footer

nathan_kennedy
Kilo Explorer

Hi all

I am wondering if it is possible to implement a standard email signature for outgoing mail without having to copy/paste it into each individual notification?

Basically we need to stamp our company contact details on each mail as part of our branding policy

Any ideas would be greatly appreciated

Cheers

7 REPLIES 7

smita8
Kilo Explorer

There is two way to do branding
1)To specify by From and To Address
2) At the end in any email notification itself

Both the thing you can define in any email notification under "What it will contain" tab.
At the end of message create company specific signature. you can use html tag also for the same .
You can also create email template and use wherever you want for signature.
for example :



Also in From address you can specify the email address you want to use in From. For example, helpdesk@yourcompany.com.

For more detail you can see http://wiki.servicenow.com/index.php?title=Email_Notifications#Specifying_What_Content_the_Notification_Contains

Thank you for contacting XXXX Helpdesk. If you
require more assistance, please do not hesitate to either call or email us.



XXXX Helpdesk | XXXX International | Phone: | Email: href="mailto:support@yourcompany.org">support@yourcompany.org


nathan_kennedy
Kilo Explorer

What I am looking for is a way to automatically apend the signature to all notifications though. I have created the html signature but I need to be able to add this to all notifications without having to paste it in to the "what it will contain" tab for each and every notification.

I hope that helps to clarify


Arlen
Mega Expert

Hi Nathan,

One way that comes to mind (perhaps the only way) is to use a 'before' business rule on the email (sys_email) table.

Table: Email (sys_email)
When: Before
Insert/Update: True
Condition: current.type.changesTo('sent')

So essentially you are intercepting the email before it is sent from the instance and amending the body with your signature / disclaimer.

The code for the business rule could look like this:



var mybody = current.body_text + "\n";
mybody += "Enter your signature here. If required, you can use HTML tags for formatting";
current.body_text = mybody;


As always, please test the above in your dev instance 🙂


Thanks Arlen,

I work with Nathan. I had to amend it slightly. After some testing, I found that the email was sent before the state was changed to "sent". So I changed the condition to:


current.state.changesTo("ready")

I also found that for some reason I had to use the "current.body" value instead of "body_text".
So I have:

var mybody = current.body + "\n";
mybody += "Enter your signature here. If required, you can use HTML tags for formatting";
current.body = mybody;