ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

V11 can't suspend nor resume email queue


#1

Hello team,
There used to be an option to Suspend and Resume email queue

Now I don’t see it anymore.

Has that option been moved to somewhere else or is it a bug?
meanwhile, my I had suspended my email queue before the update which means I can’t resume it since the option isn’t available.

Installed Apps
ERPNext: v11.1.2 (master)
Frappe Framework: v11.1.2 (master)

Thanks


#2

help anyone


#3

Still to find a solution.
Now running
ERPNext: v11.1.4 (master)
Frappe Framework: v11.1.4 (master)


#4

I think you can pause individual emails still within the email queue but I appreciate this isn’t what you requested


#5

My email queue is already paused before the updates, I just want to resume the entire email queue,
For now I go to individual emails in the email queue and send it from there.


As you can imagine it’s quite a hustle, because I’m not available all the time to check the email queue
Was hoping to resume the entire queue, also be able to pause it again next time when I want to
Thanks


#6

Login via administrator, and go to JavaScript console. There, paste following to send all pending emails

frappe.db.get_list('Email Queue', {filters:{'status':'Not Sent'}, limit:100000000}).then(async res => {
	for(let i of res){
		console.log('Sending', i.name);
		await frappe.call('frappe.email.doctype.email_queue.email_queue.send_now', {
			name: i.name,
		});
	}
});