public static function POP3::popBeforeSmtp

5.x POP3.php public static POP3::popBeforeSmtp( $host, $port = false, $timeout = false, $username = '', $password = '', $debug_level = 0 )

Simple static wrapper for all-in-one POP before SMTP.

Parameters

string $host The hostname to connect to:

int|bool $port The port number to connect to:

int|bool $timeout The timeout value:

string $username:

string $password:

int $debug_level:

Return value

bool

File

inc/PHPMailer/src/POP3.php, line 145

Class

POP3
PHPMailer POP-Before-SMTP Authentication Class. Specifically for PHPMailer to use for RFC1939 POP-before-SMTP authentication. 1) This class does not support APOP authentication. 2) Opening and closing lots of POP3 connections can be quite slow. If you…

Namespace

PHPMailer\PHPMailer

Code

public static function popBeforeSmtp(
$host, 
$port = false, 
$timeout = false, 
$username = '', 
$password = '', 
$debug_level = 0
) {
  $pop = new self();

  return $pop->authorise($host, $port, $timeout, $username, $password, $debug_level);
}