title: how can I use a email template in the following function?
body: <p>I am trying to send mail function using the following code:</p>
  
  <pre><code>def button_confirm_mom(self,cr,uid,ids,context=None):
          sobj = self.browse(cr, uid, ids)
          msg_pool = self.pool.get('mail.mail')
          cc_text = ''
          msg_vals = {
                        'subject'    : "MoM has been created",
  
                        'email_from' : "abc@gmail.com",
                        'reply_to'   : False,
                        'state'      : 'outgoing',
                        'model'       : False,
                        'res_id'      : False,
                        'auto_delete' : False,
              }
  
  
          if sobj.matp:
              for cc_obj in sobj.matp:
                  if cc_obj.empname.work_email:
                      cc_text += cc_obj.empname.work_email + ','
  
          if sobj.newa:
              for cc_obj1 in sobj.newa:
                  if cc_obj1.empname.work_email:
                      cc_text += cc_obj1.empname.work_email + ','
              msg_vals['email_cc'] = cc_text
          self.pool.get('mail.mail').create(cr,uid,msg_vals)
          return True
  </code></pre>
  
  <p>I wanted to know how i can use a template and send the mail for multiple people. Anyone has any idea on this ?</p>