You are here: Re: Using SendMail in Forms w/PHP HTML « PHP SQL « IT news, forums, messages
Re: Using SendMail in Forms w/PHP HTML

Posted by Timbo Twiddly on 04/30/07 01:17

Make sure you have proper path to the language file.

$mail->SetLanguage("en","phpmailer/language");

<jcage@lycos.com> wrote in message
news:1177864368.543279.287540@u30g2000hsc.googlegroups.com...
> 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'=>'joe@server.com',
> 'bob'=>'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.
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация