PHPMailer\PHPMailer\PHPMailer::setMessageType PHP Méthode

setMessageType() protected méthode

PHPMailer only supports some preset message types, not arbitrary MIME structures.
protected setMessageType ( ) : void
Résultat void
    protected function setMessageType()
    {
        $type = [];
        if ($this->alternativeExists()) {
            $type[] = 'alt';
        }
        if ($this->inlineImageExists()) {
            $type[] = 'inline';
        }
        if ($this->attachmentExists()) {
            $type[] = 'attach';
        }
        $this->message_type = implode('_', $type);
        if ('' == $this->message_type) {
            $this->message_type = 'plain';
        }
    }