src/Users.php
public function emailUser($target, $subject = null, $text = null, $ccme = null)
	{
		// Get the token.
		$token = $this->getToken($target, 'emailuser');

		// Build the request path.
		$path = '?action=emailuser';

		// Build the request data.
		$data = array(
			'target'  => $target,
			'token'   => $token,
			'subject' => $subject,
			'text'    => $text,
			'ccme'    => $ccme,
		);

		// Send the request.
		$response = $this->client->post($this->fetchUrl($path), $data);

		return $this->validateResponse($response);
	}
public function emailUser($target, $subject = null, $text = null, $ccme = null)
	{
		// Get the token.
		$token = $this->getToken($target, 'emailuser');

		// Build the request path.
		$path = '?action=emailuser';

		// Build the request data.
		$data = array(
			'target'  => $target,
			'token'   => $token,
			'subject' => $subject,
			'text'    => $text,
			'ccme'    => $ccme,
		);

		// Send the request.
		$response = $this->client->post($this->fetchUrl($path), $data);

		return $this->validateResponse($response);
	}
public function emailUser ( $ target , $ subject = null , $ text = null , $ ccme = null ) { // Get the token. $ token = $ this -> getToken ( $ target , 'emailuser' ) ; // Build the request path. $ path = '?action=emailuser' ; // Build the request data. $ data = array ( 'target' => $ target , 'token' => $ token , 'subject' => $ subject , 'text' => $ text , 'ccme' => $ ccme , ) ; // Send the request. $ response = $ this -> client -> post ( $ this -> fetchUrl ( $ path ) , $ data ) ; return $ this -> validateResponse ( $ response ) ; }
Method to email a user.

@param   string   $target   User to send email to.
@param   string   $subject  Subject header.
@param   string   $text     Mail body.
@param   boolean  $ccme     Send a copy of this mail to me.

@return  object

@since   1.0
Method to email a user .