@frappe.whitelist()
def send_now(name):
 auto_email_report = frappe.get_doc(u'Auto Email Report', name)
 auto_email_report.check_permission()
 auto_email_report.send()

@ frappe . whitelist ( ) def send_now ( name ) : auto_email_report = frappe . get_doc ( u'Auto Email Report' , name ) auto_email_report . check_permission ( ) auto_email_report . send ( )
send auto email report now .