Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3 Antwoorden
2992 Weergaven

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

Ok, thanks i will try this code

Auteur

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

Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
dec. 23
9108
1
jan. 21
9943
1
okt. 20
7731
1
mei 19
3146
0
dec. 16
3854