How can I send the email automatically without entering it into email queue in erpnext?

Currently, I have generated a notification for a purchase order. When we generate a purchase or submit a purchase order an email is generated and it is been send to the admin. The problem I am facing right now is that, the email is been passed through email queue and it status is showing as “not send”, so i have to press the send button manually to send the email notification. So, is there any way that email is send immediate without entering it into email queue and i do not have to press the button manually?

On localhost, I am using this version :-
ERPNext: v14.x.x-develop () (develop)
Frappe Framework: v15.x.x-develop () (develop)

Hi @SNEH:

Maybe yout scheduler is disabled.

Try

bench scheduler enable
bench scheduler resume

Hope this helps

My issue is solved, Thanks for the help!!! But sometimes the scheduler takes few minutes to send the email, so any suggestions to solve the timings???

My issue is solved, Thanks for the help!!! But sometimes the scheduler takes few minutes to send the email, so any suggestions to solve the timings???

Hi @SNEH:

From hooks.py config, scheduler launchs frappe.email.queue.flush every 60 seconds …

See this:
https://frappeframework.com/docs/user/en/api/background_jobs#available-events

Hope this helps.