Do you have a question? Post it now! No Registration Necessary. Now with pictures!
May 29, 2006, 9:03 pm
rate this thread
So, what's the story here? The manual says I can use an array or csv
in the $recipients, but using the same array in the $headers[to] gives
me an Array@myhost.com.
It works, and both joe and larry get the mail, but I guess I'm using
the $headers[to] incorrectly...
$mail_object =& Mail::factory('mail', $params);
$to = array('email@example.com','firstname.lastname@example.org');
$headers['From'] = 'email@example.com';
$headers['To'] = $to;
$recipients = $to;
$headers['Subject'] = "website form";
$body = $message;
$mail_object->send($recipients, $headers, $body);
thanks for your time,
- » inserting data via browser(textarea) into database
- — Previous thread in » PHP Scripting Forum