original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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?
docstring_tokens: Set or reset instance properties .