Se rendre au contenu
Menu
Cette question a été signalée

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
Ignorer
Auteur

Ok, thanks i will try this code

Auteur

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

Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
1
déc. 23
9117
1
janv. 21
9945
1
oct. 20
7735
1
mai 19
3146
0
déc. 16
3858