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

Posted by Captain Paralytic on 04/30/07 13:44

On 30 Apr, 14:20, cover <coverlandNOSPAM...@yahoo.com> wrote:
> On 29 Apr 2007 09:32:48 -0700, j...@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'=>'...@server.com',
> '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

As I already said, go and get phpformmail from http://www.boaddrink.com/projects/phpformmail/
It not only shows you how to do this but a lot more besides!

$mail->AddAddress($arrEmailAddresses[$to]);

 

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

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