function SMTP::getError

5.x SMTP.php public SMTP::getError()

Get the latest error.

Return value

array

File

inc/PHPMailer/src/SMTP.php, line 1056

Class

SMTP
PHPMailer RFC821 SMTP email transport class. Implements RFC 821 SMTP commands and provides some utility methods for sending mail to an SMTP server.

Code

public function getError() {
  return $this->error;
}