# Mail to php form with multiple adresses

**URL:** https://forum.kirupa.com/t/mail-to-php-form-with-multiple-adresses/289123
**Category:** Uncategorized
**Created:** [May 26, 2009, 5:37pm UTC](https://forum.kirupa.com/t/mail-to-php-form-with-multiple-adresses/289123 "2009-05-26T17:37:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jakes](https://avatars.discourse-cdn.com/v4/letter/j/2acd7d/32.png) [@jakes](https://forum.kirupa.com/u/jakes)
#### Post date: [May 26, 2009, 5:37pm UTC](https://forum.kirupa.com/t/mail-to-php-form-with-multiple-adresses/289123/1 "2009-05-26T17:37:10Z")

</div>

I seem to be running into a small problem. I need to have my flash form mail to multiple addresses. The form works fine when there isn’t a secondary address. But for some reason, testing it with the second address it won’t send another email or copy of the email to the other addressee. Below is a copy of my php mail to form.

```auto
<?
//Destination Email ID
$to = "email1@something.com,email2@something.com";
//Name of the Person
$namenew = $_GET['name']; 
 
//Email Id of the person
$emailnew = $_GET['email'];   
//Phone Id of the person
$phonenew = $_GET['phone'];   
//Feedback detail
$feedbacknew = $_GET['feedback']; 
//Subject line of the email
$subject = "Feedback Form"." "."$emailnew";  
/ ***********Email body******************* /
$matter = "Below are the details filled by"." "."$namenew"."

".  
   "Name:"." "."$namenew"."

".
   "Email:"." "."$emailnew"."

".
   "Phone:"." "."$phonenew"."

".
   "Suggestion:"." "."$feedbacknew"."

";
/ ********************************************** /    
 
mail("$to", "$subject","$matter","From: $emailnew");
?>

```

My searches yielded some answers but test results seem to come up short. Any help in making this work properly is much appreciated, Thanks.
