| 
 Posted by jcage on 05/03/07 01:36 
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...  :-)
 
[Back to original message] 
 |