version . ';php', 'Accept: application/json', ]; $host = isset($options['host']) ? $options['host'] : $host; $version = isset($options['version']) ? $options['version'] : '/v3'; if (!empty($options['impersonateSubuser'])) { $headers[] = 'On-Behalf-Of: ' . $options['impersonateSubuser']; } $this->client = new Client($host, $headers, $version); $this->client->setCurlOptions(isset($options['curl']) ? $options['curl'] : []); $this->client->setVerifySSLCerts(isset($options['verify_ssl']) ? $options['verify_ssl'] : true); } /** * Make an API request. * * @param Mail $email A Mail object, containing the request object * * @return Response */ public function send(Mail $email) { return $this->client->mail()->send()->post($email); } }