library/core/class.email.php
public function Message($Message) {
   
      // htmlspecialchars_decode is being used here to revert any specialchar escaping done by Gdn_Format::Text()
      // which, untreated, would result in &#039; in the message in place of single quotes.
   
      if ($this->PhpMailer->ContentType == 'text/html') {
         $TextVersion = FALSE;
         if (stristr($Message, '<!-- //TEXT VERSION FOLLOWS//')) {
            $EmailParts = explode('<!-- //TEXT VERSION FOLLOWS//', $Message);
            $TextVersion = array_pop($EmailParts);
            $Message = array_shift($EmailParts);
            $TextVersion = trim(strip_tags(preg_replace('/<(head|title|style|script)[^>]*>.*?<\/\\1>/s','',$TextVersion)));
            $Message = trim($Message);
         }
         
         $this->PhpMailer->MsgHTML(htmlspecialchars_decode($Message,ENT_QUOTES));
         if ($TextVersion !== FALSE && !empty($TextVersion)) {
            $TextVersion = html_entity_decode($TextVersion);
            $this->PhpMailer->AltBody = $TextVersion;
         }
      } else {
         $this->PhpMailer->Body = htmlspecialchars_decode($Message,ENT_QUOTES);
      }
      return $this;
   }
public function Message($Message) {
   
      // htmlspecialchars_decode is being used here to revert any specialchar escaping done by Gdn_Format::Text()
      // which, untreated, would result in &#039; in the message in place of single quotes.
   
      if ($this->PhpMailer->ContentType == 'text/html') {
         $TextVersion = FALSE;
         if (stristr($Message, '<!-- //TEXT VERSION FOLLOWS//')) {
            $EmailParts = explode('<!-- //TEXT VERSION FOLLOWS//', $Message);
            $TextVersion = array_pop($EmailParts);
            $Message = array_shift($EmailParts);
            $TextVersion = trim(strip_tags(preg_replace('/<(head|title|style|script)[^>]*>.*?<\/\\1>/s','',$TextVersion)));
            $Message = trim($Message);
         }
         
         $this->PhpMailer->MsgHTML(htmlspecialchars_decode($Message,ENT_QUOTES));
         if ($TextVersion !== FALSE && !empty($TextVersion)) {
            $TextVersion = html_entity_decode($TextVersion);
            $this->PhpMailer->AltBody = $TextVersion;
         }
      } else {
         $this->PhpMailer->Body = htmlspecialchars_decode($Message,ENT_QUOTES);
      }
      return $this;
   }
public function Message ( $ Message ) { // htmlspecialchars_decode is being used here to revert any specialchar escaping done by Gdn_Format::Text() // which, untreated, would result in &#039; in the message in place of single quotes. if ( $ this -> PhpMailer -> ContentType == 'text/html' ) { $ TextVersion = FALSE ; if ( stristr ( $ Message , '<!-- //TEXT VERSION FOLLOWS//' ) ) { $ EmailParts = explode ( '<!-- //TEXT VERSION FOLLOWS//' , $ Message ) ; $ TextVersion = array_pop ( $ EmailParts ) ; $ Message = array_shift ( $ EmailParts ) ; $ TextVersion = trim ( strip_tags ( preg_replace ( '/<(head|title|style|script)[^>]*>.*?<\/\\1>/s' , '' , $ TextVersion ) ) ) ; $ Message = trim ( $ Message ) ; } $ this -> PhpMailer -> MsgHTML ( htmlspecialchars_decode ( $ Message , ENT_QUOTES ) ) ; if ( $ TextVersion !== FALSE && ! empty ( $ TextVersion ) ) { $ TextVersion = html_entity_decode ( $ TextVersion ) ; $ this -> PhpMailer -> AltBody = $ TextVersion ; } } else { $ this -> PhpMailer -> Body = htmlspecialchars_decode ( $ Message , ENT_QUOTES ) ; } return $ this ; }
The message to be sent.

@param string $Message The message to be sent.
@param string $TextVersion Optional plaintext version of the message
@return Email
The message to be sent .