if (! ($smtp = new Net_SMTP("smtp.gmail.com","587"))) { $this->strErrorMessage = "Nie da sie utworzyc egzemnparza obiektu"; $this->errorCode = 1; return false; } if (PEAR::isError($e = $smtp -> connect())) { $this->strErrorMessage = "Blad w polaczeniu: ". $e->getMessage(); $this->errorCode = 2; $smtp->disconnect(); return false; } if (PEAR::isError($a = $smtp -> mailFrom($this->objApparentSender->getStringRepresentation()))) { $this->strErrorMessage = $a->getMessage() . " Nie da sie ustawic nadawcy"; $this->errorCode = 3; $smtp->disconnect(); return false; }
wyrzuca mi "Invalid response code received from server" ...