Added override for email campaign sending to send emails at 08:15AM instead of midnight

This commit is contained in:
Jeremy Rangel
2025-06-04 18:09:56 -07:00
parent c51e7a8086
commit 2dfac129fa
20 changed files with 204 additions and 0 deletions

View File

@ -11,8 +11,31 @@ override_doctype_class = {
}
# Lead: Add javascript to add "Add to Email Campaign to Action Dropdown"
doctype_js = {
"Lead": "public/js/lead.js"
}
# Add cron scheduler for email campaign sending
# Send email at 08:15 AM every day
scheduler_events = {
"cron": {
"15 8 * * *": [
"rangeldigital.utilities.scheduler.scheduler.send_email_to_leads_or_contacts"
]
}
}
# Disable default send_email_to_leads_or_contacts
after_install = "rangeldigital.utilities.install.after_install"
# Enable default send_email_to_leads_or_contacts
before_uninstall = "rangeldigital.utilities.uninstall.before_uninstall"
#app_include_js = "/assets/rangeldigital/js/lead.js"
web_include_js = [