@to.setter<EOL><INDENT>def to(self, to_emails, global_substitutions=None, is_multiple=False, p=<NUM_LIT:0>):<DEDENT>
if isinstance(to_emails, list):<EOL><INDENT>for email in to_emails:<EOL><INDENT>if isinstance(email, str):<EOL><INDENT>email = To(email, None)<EOL><DEDENT>if isinstance(email, tuple):<EOL><INDENT>email = To(email[<NUM_LIT:0>], email[<NUM_LIT:1>])<EOL><DEDENT>self.add_to(email, global_substitutions, is_multiple, p)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if isinstance(to_emails, str):<EOL><INDENT>to_emails = To(to_emails, None)<EOL><DEDENT>if isinstance(to_emails, tuple):<EOL><INDENT>to_emails = To(to_emails[<NUM_LIT:0>], to_emails[<NUM_LIT:1>])<EOL><DEDENT>self.add_to(to_emails, global_substitutions, is_multiple, p)<EOL><DEDENT>
Adds To objects to the Personalization object

        :param to_emails: An To or list of To objects
        :type to_emails: To, list(To), str, tuple
        :param global_substitutions: A dict of substitutions for all recipients
        :type global_substitutions: dict
        :param is_multiple: Create a new personilization for each recipient
        :type is_multiple: bool
        :param p: p is the Personalization object or Personalization object
                  index
        :type p: Personalization, integer, optional