コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
641 ビュー

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 ;-)

アバター
破棄