For example get_recipients('to')

def get_recipients(self, name):
        """
        For example get_recipients('to')
        """
        to_str = self.render_string(self.data[name])
        formatted_emails = [
            email.utils.formataddr(addr_pair)
            for addr_pair in email.utils.getaddresses([to_str])
        ]
        return [i for i in formatted_emails if i]