<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def inviteByEmail(self, emails, subject, text, html, role="org_user", mustApprove=True, expiration=1440):
 """Invites a user or users to a site. Inputs: emails - comma seperated list of emails subject - title of email text - email text html - email text in html role - site role (can't be administrator) mustApprove - verifies if user that is join must be approved by an administrator expiration - time in seconds. Default is 1 day 1440 """

        url = self.root + "/inviteByEmail"
        params = {
            "f" : "json",
            "emails": emails,
            "subject": subject,
            "text": text,
            "html" : html,
            "role" : role,
            "mustApprove": mustApprove,
            "expiration" : expiration
        }
        return self._post(url=url, param_dict=params,
                             securityHandler=self._securityHandler,
                             proxy_url=self._proxy_url,
                             proxy_port=self._proxy_port)