Overdue alert through mail

How to give overdue alert through mail for both projects and when Next Contact Date in lead Exceeds

https://frappe.github.io/erpnext/user/manual/en/setting-up/email/email-alerts.html