parameters: (self, email)
docstring: Send an email to the given address to subscribe / unsubscribe to the mailing list.
docstring_summary: Send an email to the given address to subscribe / unsubscribe to the mailing list.
docstring_tokens: Send an email to the given address to subscribe / unsubscribe to the mailing list .
function: def _send_subscribe_confirmation_email(self, email):
          """Send an email to the given address to subscribe / unsubscribe to the mailing list."""
          self.ensure_one()
          confirm_action_url = self._generate_action_url(email, 'subscribe')
  
          template = self.env.ref('mail_group.mail_template_list_subscribe')
          template.with_context(token_url=confirm_action_url).send_mail(
              self.id,
              force_send=True,
              email_values={
                  'author_id': self.create_uid.partner_id.id,
                  'auto_delete': True,
                  'email_from': self.env.company.email_formatted,
                  'email_to': email,
                  'message_type': 'user_notification',
              },
              notif_layout='mail.mail_notification_light',
          )
          _logger.info('Subscription email sent to %s.', email)
function_tokens: def _send_subscribe_confirmation_email ( self , email ) : self . ensure_one ( ) confirm_action_url = self . _generate_action_url ( email , 'subscribe' ) template = self . env . ref ( 'mail_group.mail_template_list_subscribe' ) template . with_context ( token_url = confirm_action_url ) . send_mail ( self . id , force_send = True , email_values = { 'author_id' : self . create_uid . partner_id . id , 'auto_delete' : True , 'email_from' : self . env . company . email_formatted , 'email_to' : email , 'message_type' : 'user_notification' , } , notif_layout = 'mail.mail_notification_light' , ) _logger . info ( 'Subscription email sent to %s.' , email )