PHPMailer\PHPMailer
POP3::popBeforeSmtp
Simple static wrapper for all-in-one POP before SMTP.
Method of the class: POP3{}
No Hooks.
Returns
true|false.
Usage
$result = POP3::popBeforeSmtp( $host, $port, $timeout, $username, $password, $debug_level );
- $host(string) (required)
- The hostname to connect to.
- $port(int|true|false)
- The port number to connect to.
Default:false - $timeout(int|true|false)
- The timeout value.
Default:false - $username(string)
- .
Default:'' - $password(string)
- .
Default:'' - $debug_level(int)
- .
POP3::popBeforeSmtp() POP3::popBeforeSmtp code WP 6.9.1
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);
}