Skip to Content
मेन्यू
This question has been flagged

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?



Avatar
Discard
Author

Ok, thanks i will try this code

Author

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

Best Answer

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


Avatar
Discard
Related Posts Replies Views Activity
1
दिस॰ 23
9114
1
जन॰ 21
9944
1
अक्तू॰ 20
7734
1
मई 19
3146
0
दिस॰ 16
3856