public function setSubject($subject)
    {
        $node = $this->getSubject(false);
        if(!$node){
            $node = $this->createElement('subject');
            $this->doc->appendChild($node);
        }
        $node->nodeValue = htmlspecialchars($subject);
    }
public function setSubject($subject)
    {
        $node = $this->getSubject(false);
        if(!$node){
            $node = $this->createElement('subject');
            $this->doc->appendChild($node);
        }
        $node->nodeValue = htmlspecialchars($subject);
    }
public function setSubject ( $ subject ) { $ node = $ this -> getSubject ( false ) ; if ( ! $ node ) { $ node = $ this -> createElement ( 'subject' ) ; $ this -> doc -> appendChild ( $ node ) ; } $ node -> nodeValue = htmlspecialchars ( $ subject ) ; }
Set the subject of the message
@param string $subject
Set the subject of the message