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 Captain Paralytic on 05/03/07 14:28

On 3 May, 02:36, j...@lycos.com wrote:
> 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... :-)

| 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?

Think about it! What have't you told us that you really should have?

Let me give you a clue: "gives me back an error."

WHAT ERROR?????!!!!!!

How are we supposed to help you when you don't tell us? We don't have
a crystal ball.

 

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

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