Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Fatal error: Call to undefined method SMTP::getError() in, class.phpmailer.php
Michał90
post
Post #1





Grupa: Zarejestrowani
Postów: 267
Pomógł: 0
Dołączył: 16.05.2007

Ostrzeżenie: (0%)
-----


Witam,
Mam problem z php

Fatal error: Call to undefined method SMTP::getError() in /inc/class.phpmailer.php on line 1789
plik: class.phpmailer.php
  1. protected function SetError($msg) {
  2. $this->error_count++;
  3. if ($this->Mailer == 'smtp' and !is_null($this->smtp)) {
  4. $lasterror = $this->smtp->getError();
  5. if (!empty($lasterror) and array_key_exists('smtp_msg', $lasterror)) {
  6. $msg .= '<p>' . $this->Lang('smtp_error') . $lasterror['smtp_msg'] . "</p>\n";
  7. }
  8. }
  9. $this->ErrorInfo = $msg;
  10. }


linia 1789:
  1. $lasterror = $this->smtp->getError();


konfiguracja
plik: config.php
  1. $adminmail = "poczta@gmail.com";
  2. $mail_host="ssl://smtp.gmail.com";
  3. $mail_user="poczta@gmail.com";
  4. $mail_pass="hasło";
  5. $mail_from_name="Administrator ".$domena;
  6. $mail_from="poczta@gmail.com";


W czym tkwi problem, że nie moge wysłać wiadomości tylko ten problem wyskakuje..
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 14:44