Here is the code I'm using:
<?php
include('Mail.p hp');
$recipients = array('To' ='sanfranc415@y ahoo.com',
);
$headers['From'] = 'techjohnny@gma il.com';
$headers['To'] = 'sanfranc415@ya hoo.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($recipien ts, $headers, $body);
?>
Now the message is sent with the subject, but the body is not being
sent, why?
Thanks,
--TJ
<?php
include('Mail.p hp');
$recipients = array('To' ='sanfranc415@y ahoo.com',
);
$headers['From'] = 'techjohnny@gma il.com';
$headers['To'] = 'sanfranc415@ya hoo.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($recipien ts, $headers, $body);
?>
Now the message is sent with the subject, but the body is not being
sent, why?
Thanks,
--TJ
Comment