public function markEmailRead( $email_id = null ) {
		if ( ! $email_id ) {
			$this->assertNotEmpty( $this->_current_email, 'The current email is not selected' );
			$email_id = $this->_current_email['id'];
		}

		$this->_send_patch_request( '/messages/' . $email_id, array(
			'message' => array( 'is_read' => true )
		) );
	}
public function markEmailRead( $email_id = null ) {
		if ( ! $email_id ) {
			$this->assertNotEmpty( $this->_current_email, 'The current email is not selected' );
			$email_id = $this->_current_email['id'];
		}

		$this->_send_patch_request( '/messages/' . $email_id, array(
			'message' => array( 'is_read' => true )
		) );
	}
public function markEmailRead ( $ email_id = null ) { if ( ! $ email_id ) { $ this -> assertNotEmpty ( $ this -> _current_email , 'The current email is not selected' ) ; $ email_id = $ this -> _current_email [ 'id' ] ; } $ this -> _send_patch_request ( '/messages/' . $ email_id , array ( 'message' => array ( 'is_read' => true ) ) ) ; }
Marks email read. If no email id is provided, then email id will be taken
from the current email.

@since 1.0.0

@access public
@param int $email_id The email id.
Marks email read . If no email id is provided then email id will be taken from the current email .