Problems with Mail.php using SMTP

From: Date: Sat, 06 Sep 2003 16:25:05 +0000
Subject: Problems with Mail.php using SMTP
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7613@lists.php.net to get a copy of this message
Here is my little test script: <script language="php"> require_once 'Mail.php'; $email = Mail::Factory( 'smtp' ); $recipientArray = array( 'To' => 'joe@bob.com' ); $headersArray = array( 'From' => 'here@there.com', 'CC' => 'here@there.com', 'Subject' => 'Test email from PEAR', 'Reply-to' => 'chris@wild.net' ); $emailBody = date( 'H:i:s' ) . "\n"; $emailBody .= 'This is a test run of my mail script'; $result = $email->send( $recipientArray, $headersArray, $emailBody ); echo 'Result:<pre>'; print_r( $result ); echo '</pre>'; </script> Not much, really. Everything is working with the exception of the recipient argument. No matter what I do, use a string or set it up as an array, I get the mail without a TO header and 'joe@bob.com' never gets the email. What am I doing wrong? I've looked at the code and it appears that I'm doing it right. But evidently, I'm not. Help? thnx, Chris

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