SMTP :: mixed mxconnect ( string hostname [, integer port [, integer timeout [, string name [, resource context ]]]] )
Return RESOURCE connection if has been successfully connected, boolean FALSE if not.
Connect to string hostname MX zone.
Default values are:
integer port: 25
integer timeout: 30
string name: localhost
string name is used in EHLO/HELO SMTP conversation.
Example:
// connect to 'hostname.tld' MX zone
$c = SMTP::MXconnect('hostname.tld');
// print result
if ($c) echo 'Successfully connected !';
else print_r($_RESULT); // <- for debugging
|
See Also: SMTP::Disconnect(), SMTP::Connect(), SMTP::Send()
[ Comments ]
Last update: Sunday, June 24, 2007