跳至内容
菜单
此问题已终结
2 回复
660 查看

I want to check for new contacts to send an automatic e-mail. So on a daily basis, I would do an automatic process comparing the create date of a new contact. If the create date is higher than yesterday, I would send a mail.


How do I compare the Create date to the date of yesterday (today, minus one day)

形象
丢弃
最佳答案

Hi,

You need to create a scheduled action and mail template for this.The model of both are shown in the images below:

You can create the template from settings -> technical -> email templates and scheduled action from settings -> technical -> scheduled action.
The id passed in the line:    mail_template = env'mail. template']. sudo. browse(80)Is the id of the email template.


Hope it helps

形象
丢弃
编写者 最佳答案

Thank you, I'll try this. I didn't know it would require programming ;-)

形象
丢弃