468,315 Members | 1,403 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,315 developers. It's quick & easy.

PEAR Mail - $recipients vs. $headers['to']

Hi there,

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 Ar***@myhost.com.

It works, and both joe and larry get the mail, but I guess I'm using
the $headers[to] incorrectly...

<?php
include('Mail.php');
$mail_object =& Mail::factory('mail', $params);

$to = array('j**@adsfadsfads.com','l****@asdfasdfasd.com ');

$headers['From'] = 'w******@sadfasdfasdfasdf.com';
$headers['To'] = $to;
$recipients = $to;
$headers['Subject'] = "website form";

$body = $message;

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

--
thanks for your time,
juglesh

May 29 '06 #1
0 1309

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by fo | last post: by
3 posts views Thread by Andrew Aronoff | last post: by
3 posts views Thread by Nick Gilbert | last post: by
15 posts views Thread by Craig Hurley | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.