Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
3 Respostas
3009 Visualizações

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
Cancelar
Autor

Ok, thanks i will try this code

Autor

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

Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
dez. 23
9127
1
jan. 21
9979
1
out. 20
7745
1
mai. 19
3153
0
dez. 16
3878