I'm having trouble getting any cc or bcc address to get email using PEAR's mail_mime. Here is my code:
include('Mail.php');
include('Mail/mime.php');
$params['host'] = "192.168.186.200";
$params['port'] = "25";
$mail_object=&Mail::factory('smtp',$params);
$to='to@hello.com';
$cc='cc@hello.com';
$bcc='bcc@hello.com';
$from='from@hello.com';
$subject='this is a test';
$crlf="\n";
$mime=new Mail_mime($crlf);
$mime->addCc($cc);
$mime->addBcc($bcc);
$mime->setFrom($from);
$mime->setSubject($subject);
$hdrs['To']=$to;
$mime->setHTMLBody('hello');
$sendbody=$mime->get();
$mail_object->send($to,$mime->headers($hdrs),$sendbody);
Any help or direction would be awesome!!
Thanks.