i have a string like:
$email = 'xyz@email.com,abc@email.Com,and others@email.com';
AND
$msg = 'SEND these to each email above thanks';
in my achievement i want to be able to send text in the $msg as an email message to each email in $email example:
$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);
}
big thanks for your impact in my soluction