跳至内容
菜单
此问题已终结

Hello,

I have configure email in odoo 11 and working fine, but now i want to create a function in my code to sent email after request has been submitted to recipient.

Any Help?



形象
丢弃
编写者

Ok, thanks i will try this code

编写者

Hello Sudhir thanks a lot but how do i sent email from template as well?

最佳答案

Do you want to send an email from button click? If yes, use following code:

mail_template = self.env.ref('my_module.my_email_template') // Get Email Template by XML ID
mail_template.send_mail(record.id, force_send=True) // Send Email


形象
丢弃
相关帖文 回复 查看 活动
1
12月 23
9116
1
1月 21
9945
1
10月 20
7735
1
5月 19
3146
0
12月 16
3858