public function setMessageId($message)
    {
        if (is_bool($message)) {
            $this->_messageId = $message;
        } else {
            if (!preg_match('/^\<.+@.+\>$/', $message)) {
                throw new InvalidArgumentException('Invalid format to Message-ID. The text should be something like "<uuid@server.com>"');
            }
            $this->_messageId = $message;
        }

        return $this;
    }
public function setMessageId($message)
    {
        if (is_bool($message)) {
            $this->_messageId = $message;
        } else {
            if (!preg_match('/^\<.+@.+\>$/', $message)) {
                throw new InvalidArgumentException('Invalid format to Message-ID. The text should be something like "<uuid@server.com>"');
            }
            $this->_messageId = $message;
        }

        return $this;
    }
public function setMessageId ( $ message ) { if ( is_bool ( $ message ) ) { $ this -> _messageId = $ message ; } else { if ( ! preg_match ( '/^\<.+@.+\>$/' , $ message ) ) { throw new InvalidArgumentException ( 'Invalid format to Message-ID. The text should be something like "<uuid@server.com>"' ) ; } $ this -> _messageId = $ message ; } return $ this ; }
Sets message ID.

@param bool|string $message True to generate a new Message-ID, False to ignore (not send in email), String to set as Message-ID.
@return $this
@throws \InvalidArgumentException
Sets message ID .