[PHP] Mail problem with PEAR

2005-04-12 Thread marc serra
Hi, i want to send an email with an attached file using PEAR classes. I 
succeed to do it with one recipients and more.

I use an external SMTP to send it. My problem is that when i want to 
send an email with for example 4 recipients and 1 attached file, the 
mail is send 4 times to the SMTP server. Is it possible to use PEAR mail 
function to send it 1 time to SMTP server and after that SMTP server 
send it to the 4 recipients ?

thx for your help.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Mail problem with PEAR

2005-04-12 Thread Josip Dzolonga
On , 2005-04-12 at 12:15 +0200, marc serra wrote:
 Hi, i want to send an email with an attached file using PEAR classes. I 
 succeed to do it with one recipients and more.
 
 I use an external SMTP to send it. My problem is that when i want to 
 send an email with for example 4 recipients and 1 attached file, the 
 mail is send 4 times to the SMTP server. Is it possible to use PEAR mail 
 function to send it 1 time to SMTP server and after that SMTP server 
 send it to the 4 recipients ?

Yes, set mail headers for CC and BCC. I'm not very familiar with PEAR's
package for sending mail, but I'm more than sure that it has feature to
set headers. Looking at the manual ( www.php.net/mail ) would be also an
excellent idea, since there are this kind of code examples.

Hope this helps,
Josip Dzolonga
http://josip.dotgeek.org

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php