src/EmailServiceClient.php
public function email(array $config = [])
    {
        $result = $this->emailInternal($config);
        $statusCode = (int)$result['statusCode'];
        
        if ($statusCode >= 200 && $statusCode < 300) {
            return $this->getResultAsArrayWithoutStatusCode($result);
        }
        
        $this->reportUnexpectedResponse($result, 1503511660);
    }
public function email(array $config = [])
    {
        $result = $this->emailInternal($config);
        $statusCode = (int)$result['statusCode'];
        
        if ($statusCode >= 200 && $statusCode < 300) {
            return $this->getResultAsArrayWithoutStatusCode($result);
        }
        
        $this->reportUnexpectedResponse($result, 1503511660);
    }
public function email ( array $ config = [ ] ) { $ result = $ this -> emailInternal ( $ config ) ; $ statusCode = ( int ) $ result [ 'statusCode' ] ; if ( $ statusCode >= 200 && $ statusCode < 300 ) { return $ this -> getResultAsArrayWithoutStatusCode ( $ result ) ; } $ this -> reportUnexpectedResponse ( $ result , 1503511660 ) ; }
Create an email with the given information.

@param array $config An array key/value pairs of attributes for the new
email.
@return array An array of information about the email.
@throws EmailServiceClientException
Create an email with the given information .