Hi,
I'm trying to use the smtp class but i'm not really working all that well.
Here'e what i did:
I've downloaded the smtp class and the sasl class (which comes with 6 other file's: login_sasl_client, ntlm_sasl_client, etc...). These files all reside in one folder on my server. 
I've required() the sasl file
I've used the example file you've written. Filled the var with is what I think the right info:
$from="<<private>>@gmail.com";                           /* Change this to your address like "
[email protected]"; */ $sender_line=__LINE__;
    $to="<<private>>@gmail.com";                             /* Change this to your test recipient address */ $recipient_line=__LINE__;
    if(strlen($from)==0)
        die("Please set the messages sender address in line ".$sender_line." of the script ".basename(__FILE__)."\n");
    if(strlen($to)==0)
        die("Please set the messages recipient address in line ".$recipient_line." of the script ".basename(__FILE__)."\n");
    $smtp=new smtp_class;
    $smtp->host_name="smtp.gmail.com";       /* Change this variable to the address of the SMTP server to relay, like "smtp.myisp.com" */
    $smtp->host_port=465;                /* Change this variable to the port of the SMTP server to use, like 465 */
    $smtp->ssl=0;                       /* Change this variable if the SMTP server requires an secure connection using SSL */
    $smtp->localhost="localhost";       /* Your computer address */
    $smtp->direct_delivery=0;           /* Set to 1 to deliver directly to the recepient SMTP server */
    $smtp->timeout=10;                  /* Set to the number of seconds wait for a successful connection to the SMTP server */
    $smtp->data_timeout=0;              /* Set to the number seconds wait for sending or retrieving data from the SMTP server.
                                           Set to 0 to use the same defined in the timeout variable */
    $smtp->debug=1;                     /* Set to 1 to output the communication with the SMTP server */
    $smtp->html_debug=1;                /* Set to 1 to format the debug output as HTML */
    $smtp->pop3_auth_host="";           /* Set to the POP3 authentication host if your SMTP server requires prior POP3 authentication */
    $smtp->user="<<private>>";                     /* Set to the user name if the server requires authetication */
    $smtp->realm="";                    /* Set to the authetication realm, usually the authentication user e-mail domain */
    $smtp->password="<<private>>";                 /* Set to the authetication password */
    $smtp->workstation="";              /* Workstation name for NTLM authentication */
    $smtp->authentication_mechanism=""; /* Specify a SASL authentication method like LOGIN, PLAIN, CRAM-MD5, NTLM, etc..
                                           Leave it empty to make the class negotiate if necessary */
this resolves to the following error messages:
i.e. <<private>> contains private info
any ideas
Resolving SMTP server domain "smtp.gmail.com"...
Connecting to host address "66.249.93.109" port 465...
Connected to SMTP server "smtp.gmail.com".
Cound not send the message to 
[email protected]. Error: it was not possible to read line from the SMTP server: data access time out