swt83/php-smtp

problem sending to cc and bcc

Closed this issue · 2 comments

Hi there,
First time using GitHub, just learning php... so forgive me if I've missed something here...

I had a problem sending to cc & bcc recipients.

Convinced that I had my code right, I started looking through the bundle code.

I noticed that the $recipients array only contained the "TO" recipients.

When I changed the line:
$recipients = $this->to + $this->cc + $this->bcc;

to
$recipients = array_merge($this->to, $this->cc, $this->bcc);

It seems to work for me.
Is this something to my php version (5.4.4)?

Thanks so much,
OzPritchA

Since you are new to Github, I should make you do your first "pull request" -- ha! If you're not up for it let me know and I will go ahead and make your change to the code. Thanks for the bug find!

Hi Scott,

Thanks for writing back. I will have a crack at getting my head around it tonight and attempt a pull request.

Cheers,
Antony

On 04/04/2013, at 12:39 PM, Scott Travis notifications@github.com wrote:

Since you are new to Github, I should make you do your first "pull request" -- ha! If you're not up for it let me know and I will go ahead and make your change to the code. Thanks for the bug find!


Reply to this email directly or view it on GitHub.