SMTP :: boolean relay ( string address [, mixed username [, mixed password [, integer port [, string auth [, mixed ssl ]]]]] )
Returns TRUE if has been successfully set, FALSE if not.
Set the relay connection parameters.
Default values are:
mixed username: boolean false
mixed password: boolean false
integer port: 25
string auth: autodetect
mixed ssl: boolean false
string auth possible values are: autodetect, login, plain
mixed ssl possible values are: boolean false, boolean true, string tls, string ssl
Notice: string address can have hostname or IPv4 value.
Example:
$mail = new SMTP;
$mail->Delivery('relay');
$rset = $mail->Relay('relay.host.net', 'username', 'password', 465, 'autodetect', 'tls');
echo $rset ? 'ok' : 'error';
|
[ Comments ]
Last update: Friday, June 16, 2006