 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
nmw01223
Joined: 09 May 2008 Posts: 8
|
Posted: Fri May 09, 2008 7:51 pm Post subject: BCC problems and others, need documentation |
|
|
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 |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1003
|
Posted: Fri May 09, 2008 8:45 pm Post subject: |
|
|
| 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 |
|
 |
nmw01223
Joined: 09 May 2008 Posts: 8
|
Posted: Fri May 09, 2008 10:32 pm Post subject: |
|
|
| 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 |
|
 |
|
|
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
|
|