[Solved] Email sending rules

Post Reply
User avatar
LPARO
Posts: 148
Joined: 03 Mar 2021, 18:01
Name: Luiz Paro
Location: Brasil, São Paulo
Company Name: Luiz Paro Advogados
Contact:

[Solved] Email sending rules

Post by LPARO »

I don't know if it's a bug or some configuration error, but...

I setup the "email sending rules" to auto send an email for the client 2 days before the payment day.
Capturar.JPG
If I understand correctly and the settings are correct, taking into account that the payment date is 11/30/2021 the system should send the email to the customer on 11/28/2021.

However, the email was only sent today 12/02/2021 at 12:00 am.
Capturar2.JPG
For prevention, I disabled the rule.

What do you think ?
Last edited by LPARO on 03 Dec 2021, 18:30, edited 2 times in total.
User avatar
marijan
Posts: 281
Joined: 06 Dec 2018, 04:52
Name: Marijan Grijakovic
Location: Skopje

Re: email sending rules

Post by marijan »

Hello,

I made a same and for me it works.

Check if you set up Cron ..../cron/email_by_date.php to run every day
User avatar
LPARO
Posts: 148
Joined: 03 Mar 2021, 18:01
Name: Luiz Paro
Location: Brasil, São Paulo
Company Name: Luiz Paro Advogados
Contact:

Re: email sending rules

Post by LPARO »

marijan wrote: 02 Dec 2021, 23:08 Hello,

I made a same and for me it works.

Check if you set up Cron ..../cron/email_by_date.php to run every day
Hello, Marijan,

Thank you for your reply.

My cron is set to run once a day
Capture.jpg
Well, i'll do some new tests to see if it was something punctual.
User avatar
support
Site Admin
Posts: 6222
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: email sending rules

Post by support »

I setup the "email sending rules" to auto send an email for the client 2 days before the payment day.
To send before date you have to use +2 (current dated+2 days)
If you set -2 then it will be overdue dates.
User avatar
LPARO
Posts: 148
Joined: 03 Mar 2021, 18:01
Name: Luiz Paro
Location: Brasil, São Paulo
Company Name: Luiz Paro Advogados
Contact:

Re: email sending rules

Post by LPARO »

support wrote: 03 Dec 2021, 08:51
I setup the "email sending rules" to auto send an email for the client 2 days before the payment day.
To send before date you have to use +2 (current dated+2 days)
If you set -2 then it will be overdue dates.
Dear Sergey,

Thanks for the explanation! I will make the changes as directed.

In my view it seems a little strange that the setting for sending the email before the date has to be +2 instead of -2.

I don't know if you would accept as a suggestion the inversion of this values for the final version.

Anyway, version 3 is amazing, congratulations!
User avatar
support
Site Admin
Posts: 6222
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: email sending rules

Post by support »

In my view it seems a little strange that the setting for sending the email before the date has to be +2 instead of -2.
No, it works correctly. Once we run cron we compare current date + days entered with selected field value. You can see tooltip under days field.
User avatar
LPARO
Posts: 148
Joined: 03 Mar 2021, 18:01
Name: Luiz Paro
Location: Brasil, São Paulo
Company Name: Luiz Paro Advogados
Contact:

Re: email sending rules

Post by LPARO »

support wrote: 03 Dec 2021, 16:57
In my view it seems a little strange that the setting for sending the email before the date has to be +2 instead of -2.
No, it works correctly. Once we run cron we compare current date + days entered with selected field value. You can see tooltip under days field.
Perfect!

Thank you so much!
Post Reply