Basic question about PEAR::MAIL -> smtp.php

From: Date: Thu, 24 Jan 2002 13:30:16 +0000
Subject: Basic question about PEAR::MAIL -> smtp.php
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-715@lists.php.net to get a copy of this message
Hello, I've a basic question about smtp.php from PEAR::MAIL I don't really get the point between $recipients and $headers['To'] in the following example. How are specified cc, and bcc ? Thanks in advance <?php
    include('Mail.php');
    $recipients = 'joe@example.com';
    $headers['From']    = 'richard@phpguru.org';
    $headers['To']      = 'joe@example.com';
    $headers['Subject'] = 'Test message';
    $body = 'Test message';
    $params['host'] = 'mail.example.com';
    // Create the mail object using the Mail::factory method
    $mail_object =& Mail::factory('smtp', $params);
    $mail_object->send($recipients, $headers, $body);
?>

« previous php.pear.general (#715) next »