Documentation

__construct

public function __construct($host, $port, $tls, $strict, $login, $password, $encoding = null)

SMTP client constructor. Non-static method.

Parameters

ParameterDescriptionVersion
$hostHost.
$portPort.
$tlsProtocol for email encryption.
$strictProtocol for transport level protection.
$login Login.
$password Password.
$encoding Character encoding for messages. Without the parameter (null), sources site encoding.

Examples



© «Bitrix24», 2001-2024
Up