|
Posted by Captain Paralytic on 04/30/07 12:00
On 29 Apr, 17:32, j...@lycos.com wrote:
> I've looked at this, experimented and am confused. On form 1, the
> pull down box $to variable passes data to form 2 just fine.
>
> On form 1, I'm using joe & bob only and that info does come through
> fine. On form two, I tried;
>
> $arrEmailAddresses = array( 'joe'=>'...@server.com',
> 'bob'=>'...@server.com' ):
> array_keys($arrEmailAddresses);
>
> and leaving my TO line on the mailer portion alone:
> $mail->AddAddress($to);
>
> and get the following error message:
> Mailer Error: Language string failed to load: recipients_failedjoe
>
> I sense that I'm missing a big part of the array keys indexing but am
> not sure. Somehow, the email address loaded into the array isn't
> getting to the mailer portion of $to
>
> On Apr 22, 3:49 am, shimmyshack <matt.fa...@gmail.com> wrote:
>
>
>
> > as you do not need to send the email addresses from the browser to the
> > server in order for the server to use the value - which sent the
> > emails to the browser in the first place - why not have an array in
> > your logic, $arrEmailAddresses = array( 'joe'=>'...@server.com',
> > 'bob'=>'...@server.com' ); and simply have values joe and bob... in
> > your webpage and use the posted value - provided it exists in the
> > array obtianed by array_keys($arrEmailAddresses) as the index you then
> > uuse to obtain the email.- Hide quoted text -
>
> - Show quoted text -
When I first wanted to do somethng like this I used phpformmail from
http://www.boaddrink.com/projects/phpformmail/
That shows you how to get the to: list built and looking through it
will give yo a lot of other hints.
[Back to original message]
|