PDI Email Sending is Not Operational
This content was last updated in 2022. It may still be useful, but could contain outdated information. Please confirm its accuracy before relying on it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2022 07:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2022 07:15 AM
Hi Rick,
Go through below.
https://developer.servicenow.com/dev.do#!/learn/learning-plans/quebec/new_to_servicenow/app_store_learnv2_automatingapps_quebec_exercise_outbound_email_configuration
https://community.servicenow.com/community?id=community_question&sys_id=21640b69dbd8dbc01dcaf3231f961995
https://community.servicenow.com/community?id=community_question&sys_id=c7a3f38edb2e7bc4e0e80b55ca961945
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2022 09:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2022 09:44 AM
For anyone following this post - I found this community article that helped. Running a scripts - background script I changed the server value from devrelay to relay and that seemed to help.
https://community.servicenow.com/community?id=community_question&sys_id=a95163101ba718106531ea89bd4bcbc7
Here's the script I used - you will need to set the sys_id for the ServiceNow SMTP email account.
var emailAccountSysID = "f3671310372113004c42ded993990ed7"; //ServiceNow SMTP
var emailAccount = new GlideRecord('sys_email_account');
if (emailAccount.get(emailAccountSysID)) {
var name = emailAccount.getValue('name');
var server = emailAccount.getValue('server');
gs.info("email account: " + name + " Server: " + server);
var newServer = 'relay';
emailAccount.setValue('server', newServer);
emailAccount.update();
}
I also had to change the From email address in the ServiceNow SMTP email account from:
dev51688@servicenowdevelopers.com
to
dev51688@service-now.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2022 10:12 AM
This solved my problem as well. Thanks a lot. Updated the script to take care of manual steps.
var gr = new GlideRecord("sys_email_account");
gr.addEncodedQuery("name=ServiceNow SMTP");
gr.query();
if (gr.next()) {
gr.from = gs.getProperty('instance_name') + '@service-now.com';
gr.server = 'relay';
gr.update();
}