Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
3094 มุมมอง

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


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ธ.ค. 23
9210
1
ม.ค. 21
10027
1
ต.ค. 20
7855
1
พ.ค. 19
3197
0
ธ.ค. 16
3952