function SMTP::setError

5.x SMTP.php protected SMTP::setError($message, $detail = '', $smtp_code = '', $smtp_code_ex = '')

Set error messages and codes.

Parameters

string $message The error message:

string $detail Further detail on the error:

string $smtp_code An associated SMTP error code:

string $smtp_code_ex Extended SMTP code:

File

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

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

protected function setError($message, $detail = '', $smtp_code = '', $smtp_code_ex = '') {
  $this->error =['error' $message 'detail' $detail 'smtp_code' $smtp_code 'smtp_code_ex' $smtp_code_ex];
}