PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Mail Queue and Mime trouble with Bcc's adresse

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Mail
View previous topic :: View next topic  
Author Message
PAT



Joined: 07 Nov 2006
Posts: 1

PostPosted: Tue Nov 07, 2006 11:55 am    Post subject: Mail Queue and Mime trouble with Bcc's adresse Reply with quote

Hello,

I have some trouble with my application.
It is written with PEAR, SMARTY ....
I should send an email to me and with Bcc to 50's else adresses.
But it send it just to me.
I am on an easyPhP server.
Here is my code
Code:

$mail_queue =& new Mail_Queue($db_options, $mail_options);
$from = 'my@email.org';
$from_name = "MY";
$replyTo = "my@email.org";
$message = stripslashes($msg);
$from_params = empty($from_name) ? '"'.$from_name.'" <'.$from.'>' : '<'.$from.'>';
$hdrs = array( 'From' => $from_params,
    'Reply-To'=> $replyTo,
    'To' => $from,
    'Bcc' => $liste,
    'Subject' => $sujet );

    $mime =& new Mail_mime();
    $mime->setTXTBody($msg);
    $mime->addAttachment($pdf, $attach_type);
    $body = $mime->get();
    $hdrs = $mime->headers($hdrs);
    $seconds_to_send = 1;
    $delete_after_send = true;
    $id_user = 7;
    $mail_queue->put('','My Organisation',$from, 'my@email.org', $hdrs, $body, $seconds_to_send, $delete_after_send, $id_user);


$liste follow this pattern "titi@tito.fr<titi@tito.fr>, tita@tito.fr<tita@tito.fr>, titz@tito.fr<titz@tito.fr>, tite@tito.fr<tite@tito.fr>,"

How can I do to send My emails to the Bcc's addresses too ???

thanks for your helps
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Mail All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software