Community: Framework mailing list archives

Re: Email templates and auto_delete flag inconsistency

Maxim Litnitskiy
- 08/04/2014 08:56:17

2014-08-04 16:47 GMT+04:00 Olivier Dony <>:
So you should probably be doing something different in your server actions: - render the email template and then post it properly on the related document (e.g. the lead) by using the message_post() method. This will record it in the history of the document, and thus preserve the mail.message even if the mail.mail is auto-deleted.

Hi Oliver.
Thanks for details and understaning and especially for your time.
How can I do what you advise from automated action? 
Just a hint please.
For now I use obvious Send Email Template  server action.