Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $email = 'xyz@email.com,abc@email.Com,and others@email.com';
- AND
- $msg = 'SEND these to each email above thanks';
- $to = 'xyz@email.com';
- $msg = 'SEND these to each email above thanks';
- $to = 'abc@email.com';
- $msg = 'SEND these to each email above thanks';
- $to = 'others@email.com';
- $msg = 'SEND these to each email above thanks';
- foreach($email as $email)
- {
- $to = $email["to"];
- $subject = 'the subject';
- $message = '$msg';
- $headers = 'is this really? ';
- mail($to, $subject, $message, $headers);
- }
Add Comment
Please, Sign In to add comment