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 cover on 04/30/07 13:20

On 29 Apr 2007 09:32:48 -0700, jcage@lycos.com wrote:

So the form works fine with form 1 passing to the acknowledgement form
(form 2) but somehow, I need to pick from the array, the email
addresses associated with 'joe' and 'bob' and insert those values in
the mailto line of the phpmailer script that's part of form 2.

$arrEmailAddresses = array( 'joe'=>'joe@server.com',
'bob'=>'bob@server.com' );

so the question, how can I grab only the email address from
$arrEmailAddresses array above for replacement of the $to in the line
below?

$mail->AddAddress($to);

ie: replace as follows: "if joe, then use joe@serverlcom from array"
$mail->AddAddress($arrEmailAddresses);

thanks,
John

 

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

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