hi community
is it possible to execute email alert manually via code without waiting an event (approve) be triggered.
regards
hi community
is it possible to execute email alert manually via code without waiting an event (approve) be triggered.
regards
Hi @SOLOSOFT! Not sure if this can be used in your usecase but you can try
bench excute [the def path here]
to force trigger the def that runs the code.
Actually i need the method that get executed when send email get raised
Regards
Hi @SOLOSOFT
https://github.com/frappe/frappe/blob/develop/frappe/email/doctype/email_alert/email_alert.py#L189
Calling that method will trigger daily emails if thats what you wanted. Also I think you can send individual email by getting the doc and calling the send method on the doc:
https://github.com/frappe/frappe/blob/develop/frappe/email/doctype/email_alert/email_alert.py#L92
Hope it helps