473,398 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

PEAR, Mail Queue and Mail Mime

P
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 = 'm*@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, 'm*@email.org', $hdrs,
$body, $seconds_to_send, $delete_after_send, $id_user);
$liste follow this pattern "ti**@tito.fr<ti**@tito.fr>,
ti**@tito.fr<ti**@tito.fr>,ti**@tito.fr<ti**@tito. fr>,
ti**@tito.fr<ti**@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@

Nov 9 '06 #1
0 2923

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Xaver Biton | last post by:
Hi, my internet provvider doesn' have support for pear and I tried the manual Installation as in the installation manual but when I call the script <?php ini_set("include_path",...
1
by: Louis Aslett | last post by:
Hi, I am extremely stuck trying to port a PHP app from one server to another while making use of the PEAR Mail_mimeDecode package. We have just upgraded from RedHat 7.x to RedHat Enterprise...
1
by: George | last post by:
I've got an interesting problem that I just have not been able to figure out. I'm trying to use Mail_Mime to send multi-part/mixed emails from a Linux server and I am having trouble getting...
0
by: mail | last post by:
Hallo, ich habe ein php script geschrieben, welches mir mit hilfe der pear klassen automatisiert mails versenden soll. Als Ausgabe bekomme ich leider folgende Fehlermeldung: Fatal error: Call...
3
by: Ciegalo | last post by:
Hi to all, I'm getting my hands into PEAR for a small newsletter-sending project. I need to boost the performance of the sending script and came accross this mail_queue class that should queue the...
1
by: cybervigilante | last post by:
I was trying the pear package on my local winmachine and noticed that one of the includes has a backslash <?php include('Mail.php'); include('Mail\mime.php'); is this a path backslash?...
7
by: daniyalnawaz | last post by:
Hi! Im trying to send a html mail through PEAR but what I get in mail is blank email. Below is my code require_once "Mail.php"; require_once "Mail\mime.php";
2
by: lawpoop | last post by:
Hello all -- I'm having a problem getting images to appear in the body of an HTML email using PEAR's mail_mime class. Here's my code, what am I doing wrong? include("Mail.php");...
0
by: kronus | last post by:
Hey everyone, I am stumped once more and you guys have always helped in one way or the other. I am just now starting to fool around with using PEAR to send html emails. Following the sample...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.