public function altMessage($altMessage)
    {
        try {
            $this->mailer->IsHTML();
            $this->mailer->AltBody = $altMessage;
        } catch (phpmailerException $e) {
            throw new EmailException($e->getMessage(), $e->getCode());
        }

        return $this;
    }
public function altMessage($altMessage)
    {
        try {
            $this->mailer->IsHTML();
            $this->mailer->AltBody = $altMessage;
        } catch (phpmailerException $e) {
            throw new EmailException($e->getMessage(), $e->getCode());
        }

        return $this;
    }
public function altMessage ( $ altMessage ) { try { $ this -> mailer -> IsHTML ( ) ; $ this -> mailer -> AltBody = $ altMessage ; } catch ( phpmailerException $ e ) { throw new EmailException ( $ e -> getMessage ( ) , $ e -> getCode ( ) ) ; } return $ this ; }
Sets the alternative email message body.

This is an optional message string which can be used if you send HTML
formatted email. It lets you specify an alternative message with no HTML
formatting which is added to the header string for people who do not accept
HTML email.

@param string $altMessage The alternative message to use

@return $this
Sets the alternative email message body .