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 
BCC problems and others, need documentation

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



Joined: 09 May 2008
Posts: 8

PostPosted: Fri May 09, 2008 7:51 pm    Post subject: BCC problems and others, need documentation Reply with quote

Can anyone recommend good web documentation on Pear Mail? I am having a lot of trouble when I use BCC and the 'mail' factory.

Send() returns OK, but not all emails get there.

It isn't clear to me how it is supposed to be used, and also the differences between that and the SMTP factory.

The Pear manual is lamentably thin on the subject - does anyone know of anything better?
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1053

PostPosted: Fri May 09, 2008 8:45 pm    Post subject: Reply with quote

Did you maybe only add the "hidden" address(es) to the BCC header array? If yes, then you need to add this address(es) also to the $recipients array (first parameter of the send() method). And yes, the BCC addresses will still be hidden.
Back to top
View user's profile Send private message
nmw01223



Joined: 09 May 2008
Posts: 8

PostPosted: Fri May 09, 2008 10:32 pm    Post subject: Reply with quote

Quote:
Did you maybe only add the "hidden" address(es) to the BCC header array? If yes, then you need to add this address(es) also to the $recipients array (first parameter of the send() method).

Well, yes - I did and I didn't. This is one of the things I find strange.

I test this stuff on a W2K host with SMTP emailing via an ISP, then in real life it gets run on a Linux host, so I use the 'SMTP' factory on the W2K test host, and the 'mail' factory on the Linux host.

I found in testing that - as you imply - all the addresses, that is the superset of to/cc/bcc need to go in as recipients. That is on the W2K / SMTP system. But, when I did the same thing on the Linux / mail host, everything was sent twice! So I concluded that with Linux / mail recipients should be empty and the sender would build the list from the contents of the to/cc/bcc header lists.

So, I did that - empty recipient list on Linux / mail. It all seemed to work, but now with a reasonably large list (none in to, one in cc and around forty or more in bcc) not everyone gets the email. Yet send() returns with no errors.

Hence - I'm confused about how it is REALLY all supposed to work.
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