How do i write a code to send auto email reports weekly?? Please help.I am new erpnext.
It’s configurable. Just select report, frequency and recipient.
https://erpnext.com/docs/user/manual/en/setting-up/email/auto-email-reports
Right now I am sending the report manually every friday and saturday. But i need to send the auto generated email reports on every friday and saturday. For this i need to write a code. The steps which you told don’t work for auto email reports weekly as told by my colleagues.
Not getting daily Auto Email Report Automatically. Only While clicking Send Now is working. Need Help
@Ashutosh_Halape @saurabh6790
@Ashutosh_Halape Script report is working fine. Only issue is not sending via email automatically on Daily basis , what should i do for that
Check whether scheduler is enabled for site.
bench --site site-name doctor
If its disabled, then use bench --site site-name enable-scheduler
to enable it
Also check Error Log
for more details
Getting this error
@saurabh6790
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/.bench/bench/cli.py”, line 26, in cli
return frappe_cmd()
File “/home/frappe/.bench/bench/cli.py”, line 89, in frappe_cmd
os.chdir(os.path.join(bench_path, ‘sites’))
OSError: [Errno 2] No such file or directory: ‘./sites’