source/Core/Email.php
public function setAltBody($altBody = null, $clearSid = true)
    {
        if ($clearSid) {
            $altBody = $this->_clearSidFromBody($altBody);
        }

        // A. alt body is used for plain text emails so we should eliminate HTML entities
        $altBody = str_replace(['&amp;', '&quot;', '&#039;', '&lt;', '&gt;'], ['&', '"', "'", '<', '>'], $altBody);

        $this->set("AltBody", $altBody);
    }
public function setAltBody($altBody = null, $clearSid = true)
    {
        if ($clearSid) {
            $altBody = $this->_clearSidFromBody($altBody);
        }

        // A. alt body is used for plain text emails so we should eliminate HTML entities
        $altBody = str_replace(['&amp;', '&quot;', '&#039;', '&lt;', '&gt;'], ['&', '"', "'", '<', '>'], $altBody);

        $this->set("AltBody", $altBody);
    }
public function setAltBody ( $ altBody = null , $ clearSid = true ) { if ( $ clearSid ) { $ altBody = $ this -> _clearSidFromBody ( $ altBody ) ; } // A. alt body is used for plain text emails so we should eliminate HTML entities $ altBody = str_replace ( [ '&amp;' , '&quot;' , '&#039;' , '&lt;' , '&gt;' ] , [ '&' , '"' , "'" , '<' , '>' ] , $ altBody ) ; $ this -> set ( "AltBody" , $ altBody ) ; }
Sets text-only body of the message. If second parameter is set to true,
performs search for "sid", removes it and adds shop id to string.

@param string $altBody  mail subject
@param bool   $clearSid clear sid in mail body (default value is true)
Sets text - only body of the message . If second parameter is set to true performs search for sid removes it and adds shop id to string .