Easy way to re-send a mail from SNOW?

poulsenniels
Kilo Contributor

In our system we have a number of mails (notifications etc.) sent to requesters, suppliers, ...

 

Is it per-default possible to re-send a certain mail (e.g. point on it, and click)?

 

In the "activity" tab, we can point in the +-icon and see the mail - but how to re-send it?

4 REPLIES 4

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi,



You can reprocess the events from the events log


Go to system logs->Events->select your event and click on the related link "Reprocess event"



Thanks,


Pradeep Sharma


Tom Alday
Mega Guru

When looking at a log in System Logs > Email when you open one up you should see a link to the event that spawned the email. If you click that event you'll see a related link item to "Reprocess Event", clicking that will drop the email back into the pool to process and send out.


mike_pryor
Giga Expert

If you have the correct access, you can go to the email that was sent in the Email logs and there should be a UI Action "Resend" that you can click on to send the email once again.



Kind Regards,



Mike Pryor


ServiceNow Implementation Specialist


46.png_a=1448

Cloud
Sherpas


Shawn Dowler
Tera Guru

If you ever need to resend multiple messages, go to sys_email and filter the list, then copy the encoded query into the following background script and away you go. We had to do this one time when a developer accidentally changed the glide.email.test.user property in an update set that got applied in Production. We needed to resend 16 hours worth of email notifications. (If you do this make sure you filter to only include type = sent, or you might send emails that were supposed to be skipped)



queryString = "sys_created_onBETWEENjavascript:gs.daysAgoStart(1)@javascript:gs.daysAgoEnd(0)^type=sent"


var gr = new GlideRecord('sys_email');


gr.addEncodedQuery(queryString);


gr.query();



while (gr.next()) {


  gr.mailbox = "outbox";


  gr.type = "send-ready";


  gr.update();


}