original_string: public function send(Message $message)
  	{
  		$content = $message->generateMessage();
  
  		preg_match('~Message-ID: <(?<message_id>\w+)[^>]+>~', $content, $matches);
  
  		$path = $this->tempDir . '/'. $this->prefix . $matches['message_id'] . '.' . self::FILE_EXTENSION;
  		if (($bytes = file_put_contents($path, $content)) === FALSE) {
  			throw new InvalidStateException("Unable to write email to '$path'.");
  		}
  
  		return $bytes;
  	}
code: public function send(Message $message)
  	{
  		$content = $message->generateMessage();
  
  		preg_match('~Message-ID: <(?<message_id>\w+)[^>]+>~', $content, $matches);
  
  		$path = $this->tempDir . '/'. $this->prefix . $matches['message_id'] . '.' . self::FILE_EXTENSION;
  		if (($bytes = file_put_contents($path, $content)) === FALSE) {
  			throw new InvalidStateException("Unable to write email to '$path'.");
  		}
  
  		return $bytes;
  	}
code_tokens: public function send ( Message $ message ) { $ content = $ message -> generateMessage ( ) ; preg_match ( '~Message-ID: <(?<message_id>\w+)[^>]+>~' , $ content , $ matches ) ; $ path = $ this -> tempDir . '/' . $ this -> prefix . $ matches [ 'message_id' ] . '.' . self :: FILE_EXTENSION ; if ( ( $ bytes = file_put_contents ( $ path , $ content ) ) === FALSE ) { throw new InvalidStateException ( "Unable to write email to '$path'." ) ; } return $ bytes ; }
docstring: Store mail to file.
  @param  Message $message
  @return int
docstring_tokens: Store mail to file .