Skip to Content
Menu
This question has been flagged
3 Replies
3093 Rodiniai

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?



Portretas
Atmesti
Autorius

Ok, thanks i will try this code

Autorius

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


Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
gruod. 23
9209
1
saus. 21
10024
1
spal. 20
7843
1
geg. 19
3196
0
gruod. 16
3951