function SMTP::setTimeout

5.x SMTP.php public SMTP::setTimeout($timeout = 0)

Set SMTP timeout.

Parameters

int $timeout The timeout duration in seconds:

File

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

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 setTimeout($timeout = 0) {
  $this->Timeout = $timeout;
}