473,387 Members | 1,582 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,387 software developers and data experts.

Adding additional cc to PEAR's mail.php

I have the following code, I can send e-mail to:, cc:, and bcc:, but
what if I want to add another cc? I'm using PEAR's Mail.php.
$hdrs['From']= $From;
$hdrs['To']= $To;
$hdrs['Subject']= $Subject;

$recipients = $To.", ". $Cc.", ". $Bcc;
Thanks,

--TJ
Mar 4 '08 #1
1 5704
On Tue, 04 Mar 2008 21:42:04 +0100, te********@gmail.com
<te********@gmail.comwrote:
I have the following code, I can send e-mail to:, cc:, and bcc:, but
what if I want to add another cc? I'm using PEAR's Mail.php.
$hdrs['From']= $From;
$hdrs['To']= $To;
$hdrs['Subject']= $Subject;

$recipients = $To.", ". $Cc.", ". $Bcc;
See the comment of arminfrey at
<http://pear.php.net/manual/en/package.mail.mail.send.php>. Haven't tested
it (I normally have no use for PEAR MAIL, but it seems to be your answer....
--
Rik Wasmus
Mar 5 '08 #2

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

Similar topics

2
by: Alvaro G Vicario | last post by:
I'm trying to send e-mail using PEAR's Mail class--for testing purposes actually, I've never had any problem with conventional mail(). This is what my code looks like: ...
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",...
0
by: David Wright | last post by:
I am running Red Hat 8.0 and have pear enabled in PHP. I have installed the Socket.php in the PEAR Net/ directory. When I run this test script It displays the "Mail has been sent message" but no...
0
by: Mike Wasilewski | last post by:
I am just setting up a win 2003 server running IIS6 , php, with pear packages installed. I am trying to get the Pear Mail package working but cannot get it to send a message and it returns no...
1
by: CSTechie | last post by:
I've been battling to install PEAR on Windows XP now for too long. I am not sure what I need to do. When I run go-pear.php from the command line, I get the error message as shown at the end. I...
0
snowdonkey
by: snowdonkey | last post by:
I'm trying to use the Mail package from PEAR in a script that sends an e-mail over SMTP. The problem is that the Mail class in Mail.php provided by the package isn't found by the script. I'm using:...
2
by: MJ | last post by:
I use the following code to send mails using php usinf PEAR package. When I run this code from command line using the command "php automaticMail.php" the code works fine. But when i run this...
2
by: Paul | last post by:
I am moving an existing app written years ago to a new server. It uses Sigma Template 1.3 and Quickform 1.1.1 and PEAR.php,v 1.1.1.1 2004/02/16 The directory structure is like this: /site...
5
by: jeddiki | last post by:
I am building my subscriber list which is held in the mySQL database "client" table and I want to start sending them a newsletter. My list will probably get up to around 20,000 I would like...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.