Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
9052 Zobrazení

i need to send automtic mail using server action what is the python code use for it ?

Avatar
Zrušit
Nejlepší odpověď

Hi

Refer below line may help you

https://www.odoo.com/forum/help-1/question/how-to-send-invoice-mail-automatically-24620

http://stackoverflow.com/questions/23908437/how-to-create-program-for-sending-mail-autometically-from-openerp-using-python

http://maheshwarimayur.blogspot.in/2012/12/send-mail-in-openerp-with-mail-templates.html

 

Avatar
Zrušit
Nejlepší odpověď

Hi

In my case I needed to send an automatic instant email to all users who create a new account. In my Server Action I have my python code:

mail_template_id = 38
email_template = env['mail.template'].browse(mail_template_id)
email_template.send_mail(record.id, force_send = True)

I hope you find it useful.

Avatar
Zrušit
Autor Nejlepší odpověď

i checked this links before i ask my question but i still canot do it :(

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
říj 19
2645
1
kvě 25
577
2
kvě 25
483
0
dub 25
616
1
dub 25
813