Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
9315 มุมมอง

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ต.ค. 19
2911
1
พ.ค. 25
1164
2
พ.ค. 25
1278
0
เม.ย. 25
1059
1
เม.ย. 25
1391