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

Your name:

Reply:


Posted by jcage on 05/03/07 01:36

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... :-)

[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

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