|
Posted by Captain Paralytic on 05/04/07 11:28
On 3 May, 20:36, j...@lycos.com wrote:
> On May 3, 7:28 am, Captain Paralytic <paul_laut...@yahoo.com> wrote:
>
> > WHAT ERROR?????!!!!!!
>
> Sorry about that.
>
> "data_not_accepted" when using: $mail->AddAddress($arrEmailAddresses[$to]);
>
> and
> "provide_address" when using $mail->AddAddress =
> ($arrEmailAddresses[$to]);
>
> with either of the above syntax, the correct address from the array IS
> returned to the screen with the print command shown below.
>
> $arrEmailAddresses = array( 'joe'=>'...@server.com',
> 'bob'=>'...@server.com' );
> print_r($arrEmailAddresses[$to]);
>
> i.e.
> j...@gmail.com prints to the page just fine, just isn't working
> properly in the "AddAddress" line.
You are trying to treat AddAddress as a method in one call and as a
property in another? Which is it? If it is (as I suspect) a method, I
would put some trace statements in it (the method) to see what is
giving the error. I seem to recall you saying that you managed the
call successfully when hard coding an address, so look at the trace in
both cases (hard coded/array) and you will see what the difference is.
Finally, once again, why not use the method that I suggested a few
days ago.
[Back to original message]
|