MAIL -> mixed context ( array options )
Return RESOURCE connection if has been successfully set, boolean FALSE if not. This function is an alias of stream_context_create(). For more informations, read the List of Supported Protocols/Wrappers. Example (verification):

$m = new MAIL;

$o = array('socket' =>
     array('bindto' => '192.168.0.100:0'));
// set context connection
$m->Context($o);

// connect to 'mx.hostname.tld' using the '192.168.0.100' IP
$c = $m->Connect('mx.hostname.tld');

// send mail via '$c' resource connection
$m->Send($c);

// or send mail direct to client MX zone using the '192.168.0.100' IP
$m->Send('client');
Example (deprecated):

$m = new MAIL;

$o = array('socket' =>
     array('bindto' => '192.168.0.100:0'));
// set context connection
$m->Context = stream_context_create($o);

See Also: MAIL->Connect(), MAIL->Send() [ Comments ] Last update: Monday, June 11, 2007