I have a form built in flash with a few input fields that needs to be able to send emails to multiple email address’. Right now the form is working but for only ‘one’ email address.
Can someone look at my code and explain a way that the form can send the email to multiple email address’, by separating the email address’ by commas in the input field?
Here is my code:
[QUOTE]
<?php
$sendTo = stripslashes($_POST[“friendsEmail_txt”]);
$subject = “TOONS: Your Friend Has Sent You a Movie!”;
$sendFrom = “FROM: [email][email protected]
$body = “Check out this short animated movie, [Episode Title, hyperlinked], at toons.com.
[Episode thumbnail image, also hyperlinked]
Your friend” . stripslashes($_POST[” yourName_txt “]) . ” writes:
” . stripslashes($_POST[“friendsName_txt”]) . ” n n” . stripslashes($
If you are having problems opening the link, copy and paste the URL into your browser window:
[url]http://movie…com[/url]
Brought to you by the good folks at [Organization Name], CompanyURLhere.com.
For any questions, please contact us at ‘
“;
mail($sendTo, $subject, $body, $sendFrom);
?>
Thanks!