How to setup automatic sent in emails?

Hi, after update, my emails is not sending automatically. When I clic on Send Now, they are sent normally.

Any tips?

Thanks!

Have you tried enabling scheduler, if not try running: bench --site [site-name] enable-scheduler

This is most probably the same issue as seen here: V11 can't suspend nor resume email queue

The Email Queue Suspend/Resume function does not work as normal (button is missing), and when this was suspended before the upgrade, it seems like it cannot be switched on…

I don’t know… I’m now stuck on

“Built css/frappe-web.css”

after a

"bench remove-app xxxxxxx

After it finish, I’ll gonna test it!! Thanks!!

Hi… the scheduler is enabled!

Hi, thanks!!! the command bench execute works…

But… I edited cronjob, and it doesn’t work. May I do something else?

Thanks!!

I’ve got this:

From frappe@ip-172-31-93-188.ec2.internal Thu Jul 18 20:22:01 2019
Return-Path: frappe@ip-172-31-93-188.ec2.internal
X-Original-To: frappe
Delivered-To: frappe@ip-172-31-93-188.ec2.internal
Received: by ip-172-31-93-188.ec2.internal (Postfix, from userid 1001)
id A710844326; Thu, 18 Jul 2019 20:22:01 +0000 (UTC)
From: root@ip-172-31-93-188.ec2.internal (Cron Daemon)
To: frappe@ip-172-31-93-188.ec2.internal
Subject: Cron frappe@ip-172-31-93-188 cd /home/frappe/frappe-bench && bench execute frappe.email.queue.flush
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/frappe>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=frappe>
Message-Id: 20190718202201.A710844326@ip-172-31-93-188.ec2.internal
Date: Thu, 18 Jul 2019 20:22:01 +0000 (UTC)

/bin/sh: 1: bench: not found

Hi @xickomesquita,

can you try

$ sudo crontab -e

Then, enter

* * * * * cd /home/frappe/frappe-bench && /usr/local/bin/bench execute frappe.email.queue.flush

thats it! works great!! Thanks!!