Hey Guys,
I'm Trying to Generate a Script That can Send Multiple E-Mails in one easy form.
Heres my Current Script:
This Works, However it apears as spam (no sender).
I wanted the code to work like this:
This Script works.
So, Im thinking that the Headers Need some work...But What?
But it only sends about 3 emails out of the tested 203.
:S
Thanks For All Your Help.
I'm Trying to Generate a Script That can Send Multiple E-Mails in one easy form.
Heres my Current Script:
| Code: |
|
$name = $_POST['name']; $email = $_POST['email']; if(is_array($resultarray)) { //Gets Addressbook $names = array_shift($resultarray); $emails = array_shift($resultarray); $max = count($names); for ($i=0; $i<$max; $i=$i+1) { mail($emails[$i],"$names[$i] Has Sent You...","$body"); } |
This Works, However it apears as spam (no sender).
I wanted the code to work like this:
| Code: |
|
$name = $_POST['name']; $email = $_POST['email']; if(is_array($resultarray)) { //Gets Addressbook $names = array_shift($resultarray); $emails = array_shift($resultarray); $max = count($names); for ($i=0; $i<$max; $i=$i+1) { mail($emails[$i],"$names[$i] Has Sent You...",$body,"From: $email\n); } |
This Script works.
So, Im thinking that the Headers Need some work...But What?
But it only sends about 3 emails out of the tested 203.
:S
Thanks For All Your Help.
