Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
3 Besvarelser
3057 Visninger

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
Kassér
Forfatter

Ok, thanks i will try this code

Forfatter

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

Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
dec. 23
9183
1
jan. 21
10012
1
okt. 20
7832
1
maj 19
3178
0
dec. 16
3937