function sendEmailBatch($emailBatch = array()) {

		$final = array();

		foreach ($emailBatch as $email) {
			foreach ($email as $emailIdx => $emailValue) {
				if (strtolower($emailIdx) == 'headers') {
					$email[$emailIdx] = $this->fixHeaders($emailValue);
				}
			}
			array_push($final, $email);
		}

		return new DynamicResponseModel($this->processRestRequest('POST', '/email/batch', $final));
	}
function sendEmailBatch($emailBatch = array()) {

		$final = array();

		foreach ($emailBatch as $email) {
			foreach ($email as $emailIdx => $emailValue) {
				if (strtolower($emailIdx) == 'headers') {
					$email[$emailIdx] = $this->fixHeaders($emailValue);
				}
			}
			array_push($final, $email);
		}

		return new DynamicResponseModel($this->processRestRequest('POST', '/email/batch', $final));
	}
function sendEmailBatch ( $ emailBatch = array ( ) ) { $ final = array ( ) ; foreach ( $ emailBatch as $ email ) { foreach ( $ email as $ emailIdx => $ emailValue ) { if ( strtolower ( $ emailIdx ) == 'headers' ) { $ email [ $ emailIdx ] = $ this -> fixHeaders ( $ emailValue ) ; } } array_push ( $ final , $ email ) ; } return new DynamicResponseModel ( $ this -> processRestRequest ( 'POST' , '/email/batch' , $ final ) ) ; }
Send multiple emails as a batch

Each email is an associative array of values, but note that the 'Attachments'
key must be an array of 'PostmarkAttachment' objects if you intend to send
attachments with an email.

@param array $emailBatch  An array of emails to be sent in one batch.

@return DynamicResponseModel
Send multiple emails as a batch