code: function SmtpClose() {
          if($this->smtp != NULL)
          {
              if($this->smtp->Connected())
              {
                  $this->smtp->Quit();
                  $this->smtp->Close();
              }
          }
      }
docs: Closes the active SMTP session if one exists.
  @return void