src/bundles/Mail/PHPMailer/class.phpmailer.php
public function set($name, $value = '')
    {
        try {
            if (isset($this->$name)) {
                $this->$name = $value;
            } else {
                throw new phpmailerException($this->lang('variable_set') . $name, self::STOP_CRITICAL);
            }
        } catch (Exception $exc) {
            $this->setError($exc->getMessage());
            if ($exc->getCode() == self::STOP_CRITICAL) {
                return false;
            }
        }
        return true;
    }
public function set($name, $value = '')
    {
        try {
            if (isset($this->$name)) {
                $this->$name = $value;
            } else {
                throw new phpmailerException($this->lang('variable_set') . $name, self::STOP_CRITICAL);
            }
        } catch (Exception $exc) {
            $this->setError($exc->getMessage());
            if ($exc->getCode() == self::STOP_CRITICAL) {
                return false;
            }
        }
        return true;
    }
public function set ( $ name , $ value = '' ) { try { if ( isset ( $ this -> $ name ) ) { $ this -> $ name = $ value ; } else { throw new phpmailerException ( $ this -> lang ( 'variable_set' ) . $ name , self :: STOP_CRITICAL ) ; } } catch ( Exception $ exc ) { $ this -> setError ( $ exc -> getMessage ( ) ) ; if ( $ exc -> getCode ( ) == self :: STOP_CRITICAL ) { return false ; } } return true ; }
Set or reset instance properties.

Usage Example:
$page->set('X-Priority', '3');

@access public
@param string $name
@param mixed $value
NOTE: will not work with arrays, there are no arrays to set/reset
@throws phpmailerException
@return boolean
@TODO Should this not be using __set() magic function?
Set or reset instance properties .