Posted by berkshire on 09/20/07 12:51
> You may want to show us the lines 1-17 of your testmail.php.
>
> --
> gosha bine
Here it is (it's the same code as found on the example at
http://pear.php.net/manual/en/package.mail.mail.send.php:
<?php
include('Mail.php');
$recipients = 'jim@example.com';
$headers['From'] = 'richard@example.com';
$headers['To'] = 'john@example.com';
$headers['Subject'] = 'Test message';
$body = 'Test message';
$params['sendmail_path'] = '/usr/sbin/sendmail';
// Create the mail object using the Mail::factory method
$mail_object =& Mail::factory('sendmail', $params);
$mail_object->send($recipients, $headers, $body);
?>
[Back to original message]
|