|
Posted by Captain Paralytic on 05/03/07 14:28
On 3 May, 02:36, j...@lycos.com wrote:
> This is pretty weird... I have only 'joe' and 'bob' on my first form
> pull down and they pass the name just fine through my $to variable to
> the 2nd acknowledgment form. The array below works fine as verified
> by using a print command on the array but for whatever reason, using
> $mail->AddAddress($arrEmailAddresses[$to]); as part of the form mailer
> returns an error where if I substitute $to (with an actual address
> from the first page, the mailer works fine and mails the message.
>
> code is as follows:
> $arrEmailAddresses = array( 'joe'=>'...@server.com',
> 'bob'=>'...@server.com' );
> print_r($arrEmailAddresses[$to]);
>
> the above code returns the proper email to the screen but when used
> below, gives me back an error.
>
> $mail->AddAddress($arrEmailAddresses[$to]);
>
> can someone tell me what's up with that?
>
> thanks VERY much... :-)
| the above code returns the proper email to the screen but when used
| below, gives me back an error.
|
| $mail->AddAddress($arrEmailAddresses[$to]);
|
| can someone tell me what's up with that?
Think about it! What have't you told us that you really should have?
Let me give you a clue: "gives me back an error."
WHAT ERROR?????!!!!!!
How are we supposed to help you when you don't tell us? We don't have
a crystal ball.
Navigation:
[Reply to this message]
|