- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2023 11:38 AM
Hi Community,
I'm new to the ServiceNow product and this community and hope someone can help me with the following.
Is it possible to answer case 1 for an end-user/customer with service@domainA.com and for case 2 we use service@domainB.com?
I looked at a lot of articles related to SMTP, outbound and inbound but i did not see an answer to exactly this question (or maybe i overlooked it).
Roughly explained our Set-Up:
We are on Patch Utah
Products we use are CSM and ITSM
The System is being used and Set-Up
Why do we need this? Our Company has different Business Units / Brands and for the end-user/customer, we want to separate the communication by domain. We currently only have One Brand on the Instance but we want to add another and stumbled over this topic.
I hope the description is clear and if you need further information, just ask and let me know.
BR
Benjamin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2023 01:42 PM
HI, in each notification you have the option to set 'From' and 'Reply to' via the 'What it will contain tab'; Although this would require sperate notifications for each message/email domain combination.
If you wish to maintain only 1 notification message across the platform, you could also deliver this via a notification email script and use javascript to set From/Reply To values in your emails
Scripting for email notifications (servicenow.com) - check the example scripts.
- I use notification email scripts in 1 platform I support for 10+ and growing separate email domains.
As notification email scripts have access to the 'current' object and most records have a relationship to company (If your user/email domain records are separated by company?), then I would consider adding from/reply to string fields to your company records and then utilizing these in any notification script as this would minimize admin overhead, and give you flexibility if you need to change existing values or add new email domains.
//Depending on use\platform configuration there are many ways to deliver this type of solution and you might need to dot.walk\test mapping for a number of paths to deliver a single script for all scenarios.
//A basic example for possible 'reply to' solution.
var defaultReplyTo = 'someone@somewhere.com';
if(typeof current.company.u_reply_to != 'undefined') {
defaultReplyTo = current.company.u_reply_to;
} else if(typeof current.task.company.u_reply_to != 'undefined') {
defaultReplyTo = current.task.company.u_reply_to;
} else if (typeof current.opened_for.company.u_reply_to != 'undefined') {
defaultReplyTo = current.opened_for.company.u_reply_to;
}
email.setFrom(defaultReplyTo);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2023 02:03 AM
Hi,
just a short final answer to this Topic.
The provided solution is indeed the Solution. We tested this and it works great. The only topic that remains is the spoofing and at the moment it seems, that this is not solvable. If I find any way on solving this I will Update this thread but our IT people had no way of solving this.
So what is technically done is:
You set up an SMTP with service@domainA.com
Now you set up IMAP Access for
What you now do is technically:
The server is always sending the E-Mails as service@domainA.com (I see no way in changing this)
The end-user (who opened a ticket in ServiceNow) can receive the message with either
This is just simply based on changing the notifications and some other settings in ServiceNow.
So the only thing we can do is send on behalf of or send as (which is the technical term on the email/SMTP side).
Just wanted to clarify this before someone comes around with the same question.
BR
Benjamin