PEAR, Mail Queue and Mail Mime

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • P@

    #1

    PEAR, Mail Queue and Mail Mime

    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

    $mail_queue =& new Mail_Queue($db_ options, $mail_options);

    $from = 'my@email.org';
    $from_name = "MY";
    $replyTo = "my@email.o rg";
    $message = stripslashes($m sg);
    $from_params = empty($from_nam e) ? '"'.$from_name. '" <'.$from.'>' :
    '<'.$from.'>';
    $hdrs = array( 'From' =$from_params,
    'Reply-To'=$replyTo,
    'To' =$from,
    'Bcc' =$liste,
    'Subject' =$sujet );

    $mime =& new Mail_mime();
    $mime->setTXTBody($ms g);
    $mime->addAttachment( $pdf, $attach_type);
    $body = $mime->get();
    $hdrs = $mime->headers($hdrs) ;
    $seconds_to_sen d = 1;
    $delete_after_s end = true;
    $id_user = 7;
    $mail_queue->put('','My Organisation',$ from, 'my@email.org', $hdrs,
    $body, $seconds_to_sen d, $delete_after_s end, $id_user);


    $liste follow this pattern "titi@tito.fr<t iti@tito.fr>,
    tita@tito.fr<ti ta@tito.fr>,tit z@...titz@ tito.fr>,
    tite@tito.fr<ti te@tito.fr>,"

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

    Does someone know something about this ???
    Thanks for your help
    P@

Working...