witam. jak w temacie.

  1. if (! ($smtp = new Net_SMTP("smtp.gmail.com","587"))) {
  2. $this->strErrorMessage = "Nie da sie utworzyc egzemnparza obiektu";
  3. $this->errorCode = 1;
  4. return false;
  5. }
  6.  
  7.  
  8.  
  9. if (PEAR::isError($e = $smtp -> connect())) {
  10. $this->strErrorMessage = "Blad w polaczeniu: ". $e->getMessage();
  11. $this->errorCode = 2;
  12. $smtp->disconnect();
  13. return false;
  14. }
  15.  
  16.  
  17.  
  18. if (PEAR::isError($a = $smtp -> mailFrom($this->objApparentSender->getStringRepresentation()))) {
  19. $this->strErrorMessage = $a->getMessage() . " Nie da sie ustawic nadawcy";
  20. $this->errorCode = 3;
  21. $smtp->disconnect();
  22. return false;
  23. }


wyrzuca mi "Invalid response code received from server" ...