Page 1 of 1
Send Email to multi-recipients from Flash and PHP
Posted: Sat Oct 19, 2002 3:23 am
by Bakr
Hello...is there anyone who could enlighten me on how to write a PHP script for sending email to multi-recipients. At the moment I could only send to 2 recipients but would like to send to at least 5 recipients to save repeated typing time. I will be using Flash as the front end and PHP to process the form.
Would really appreciate if there is someone who could help.
Thanks in advance.
Bakr of Singapore
Posted: Sat Oct 19, 2002 4:44 am
by volka
http://www.php.net/manual/en/function.mail.php[quote]
bool mail ( string to, string subject, string message [, string additional_headers [, string additional_parameters]])
...
Multiple recipients can be specified by putting a comma between each address in to.[/quote]
Multiple parameters can be passed to PHP i.e. by naming the variables for the getURL-function like
Code: Select all
receipientї]=a@email.adr&receipientї]=b@email.adr
(Do not ask me about the flash part. getURL is something I just fetched the name

)
then you may iterate through this array i.e. with
Code: Select all
foreach($_POSTї'receipient'] as $recp)
...
or create a single string with
http://www.php.net/manual/en/function.implode.php
Thanks
Posted: Sat Oct 19, 2002 5:40 am
by Bakr
Many thanks Mr Volka for the info...I will look into it and see if I could get it to work.
Wish you all the best.