|  | Posted by Captain Paralytic on 04/30/07 13:44 
On 30 Apr, 14:20, cover <coverlandNOSPAM...@yahoo.com> wrote:> On 29 Apr 2007 09:32:48 -0700, j...@lycos.com wrote:
 >
 > So the form works fine with form 1 passing to the acknowledgement form
 > (form 2) but somehow, I need to pick from the array, the email
 > addresses associated with 'joe' and 'bob' and insert those values in
 > the mailto line of the phpmailer script that's part of form 2.
 >
 > $arrEmailAddresses = array( 'joe'=>'...@server.com',
 > 'bob'=>'...@server.com' );
 >
 > so the question, how can I grab only the email address from
 > $arrEmailAddresses array above for replacement of the $to in the line
 > below?
 >
 > $mail->AddAddress($to);
 >
 > ie: replace as follows: "if joe, then use joe@serverlcom from array"
 > $mail->AddAddress($arrEmailAddresses);
 >
 > thanks,
 > John
 
 As I already said, go and get phpformmail from http://www.boaddrink.com/projects/phpformmail/
 It not only shows you how to do this but a lot more besides!
 
 $mail->AddAddress($arrEmailAddresses[$to]);
  Navigation: [Reply to this message] |