Reply to Re: Using SendMail in Forms w/PHP HTML

Your name:

Reply:


Posted by Captain Paralytic on 05/04/07 11:28

On 3 May, 20:36, j...@lycos.com wrote:
> On May 3, 7:28 am, Captain Paralytic <paul_laut...@yahoo.com> wrote:
>
> > WHAT ERROR?????!!!!!!
>
> Sorry about that.
>
> "data_not_accepted" when using: $mail->AddAddress($arrEmailAddresses[$to]);
>
> and
> "provide_address" when using $mail->AddAddress =
> ($arrEmailAddresses[$to]);
>
> with either of the above syntax, the correct address from the array IS
> returned to the screen with the print command shown below.
>
> $arrEmailAddresses = array( 'joe'=>'...@server.com',
> 'bob'=>'...@server.com' );
> print_r($arrEmailAddresses[$to]);
>
> i.e.
> j...@gmail.com prints to the page just fine, just isn't working
> properly in the "AddAddress" line.

You are trying to treat AddAddress as a method in one call and as a
property in another? Which is it? If it is (as I suspect) a method, I
would put some trace statements in it (the method) to see what is
giving the error. I seem to recall you saying that you managed the
call successfully when hard coding an address, so look at the trace in
both cases (hard coded/array) and you will see what the difference is.

Finally, once again, why not use the method that I suggested a few
days ago.

[Back to original 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

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