Connecting Tech Pros Worldwide Forums | Help | Site Map

Body of message not being sent anymore.

techjohnny@gmail.com
Guest
 
Posts: n/a
#1: Mar 5 '08
Here is the code I'm using:


<?php
include('Mail.php');

$recipients = array('To' ='sanfranc415@yahoo.com',
);

$headers['From'] = 'techjohnny@gmail.com';
$headers['To'] = 'sanfranc415@yahoo.com';
$headers['Subject'] = 'Test message';

$body = 'Test message';

$params['sendmail_path'] = '/usr/lib/sendmail';

// Create the mail object using the Mail::factory method
$mail_object =& Mail::factory('sendmail', $params);

$mail_object->send($recipients, $headers, $body);
?>

Now the message is sent with the subject, but the body is not being
sent, why?

Thanks,

--TJ

techjohnny@gmail.com
Guest
 
Posts: n/a
#2: Mar 5 '08

re: Body of message not being sent anymore.


On Mar 4, 4:14 pm, "techjoh...@gmail.com" <techjoh...@gmail.com>
wrote:
Quote:
Here is the code I'm using:
>
<?php
include('Mail.php');
>
$recipients = array('To' ='sanfranc...@yahoo.com',
);
>
$headers['From'] = 'techjoh...@gmail.com';
$headers['To'] = 'sanfranc...@yahoo.com';
$headers['Subject'] = 'Test message';
>
$body = 'Test message';
>
$params['sendmail_path'] = '/usr/lib/sendmail';
>
// Create the mail object using the Mail::factory method
$mail_object =& Mail::factory('sendmail', $params);
>
$mail_object->send($recipients, $headers, $body);
?>
>
Now the message is sent with the subject, but the body is not being
sent, why?
>
Thanks,
>
--TJ
Just realized I needed to include the complete directory that PEAR
includes Mail/*

Thanks,

--JP
Closed Thread