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

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

Avatar
Annuleer
Beste antwoord

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
Annuleer
Beste antwoord

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

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

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
okt. 19
2639
1
mei 25
574
2
mei 25
476
0
apr. 25
614
1
apr. 25
810