Google_Service_Admin_Mail_Resource

The "mail" collection of methods.

Defined (1)

The class is defined in the following location(s).

/lib/Google/Service/Admin.php  
  1. class Google_Service_Admin_Mail_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Insert Mail into Google's Gmail backends (mail.insert) 
  5. * @param string $userKey 
  6. * The email or immutable id of the user 
  7. * @param Google_MailItem $postBody 
  8. * @param array $optParams Optional parameters. 
  9. */ 
  10. public function insert($userKey, Google_Service_Admin_MailItem $postBody, $optParams = array()) 
  11. $params = array('userKey' => $userKey, 'postBody' => $postBody); 
  12. $params = array_merge($params, $optParams); 
  13. return $this->call('insert', array($params));