Skip to Content
Menu
This question has been flagged
1 Reply
2118 Views

Hi All,

Iam working on send by mail facility in odoo9.0.How to add email_cc and email_bcc facility in send by mail button.?


Avatar
Discard
Best Answer

Hi,

You can add cc and send mail like this,

template_obj = self.env['mail.mail']
template_data = {
'subject': 'Subject_for_the_mail',
'body_html': "bodt_of_the_mail",
'email_from': 'test132@gmail.com',
'email_to': "recipient@domain.in",
'email_cc': 'cc_recipient@domain.in'
}
template_id = template_obj.create(template_data)
template_obj.send(template_id)

Also you can check this community module,  http://www.odoo.com/apps/modules/9.0/itis_mail_cc_bcc/

Avatar
Discard