    SMTP :: boolean delivery ( string server_connection_type )

    Returns TRUE if the server connection type has been successfully set, FALSE if not.

    local - use mail() function from php (with mail settings from php.ini), and if fail, will send e-mail to 127.0.0.1 (localhost)
    client - send the e-mail directly to the client (MX zone) mail server
    relay - use a relay mail server to send the e-mail

    string server_connection_type possible values are: local, client, relay, and including combinations with this three values separated by middle line.
    If you write multiple connections separated by middle line, second connection (afther middle line), will be used only if previous connection has fail.

    Example:

    $mail = new SMTP;

    $mail->Delivery('local-relay-client');

    // if use relay, then you must set the relay connection parameters

    $mail->Relay('relay.host.net', 'username', 'password');

    $mail->AddTo('client_username@destination.net');

    Example how to send an e-mail directly to localhost without autentication:

    $mail = new SMTP;

    $mail->Delivery('relay');

    $mail->Relay('127.0.0.1');

    [ Comments ]

    Last update: Saturday, July 15, 2006