Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
2996 Vistas

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

Ok, thanks i will try this code

Autor

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

Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
dic 23
9114
1
ene 21
9944
1
oct 20
7733
1
may 19
3146
0
dic 16
3856