Hi there I am able to send a pregenerated email and am sending this to every ones email that has been stored in my DB.
I am wondering if there is a way to some how, mask everyones email so that they do not show up in the actual email when sent so that each individual would get an email but would not be able to see one another email addresses.
I know that $to is the email address but am unsure if there is a way to mask what is actually sent to each person if at all possible.
<?php
$email = $_POST["email"];
$inregards = $_POST["inregards"];
$message1 = $_POST["message1"];
/* recipients */
$to = $email;
/* subject */
$subject = $inregards;
/* message */
$message = [B]'this would be the html message'[/B];
/* To send HTML mail, you can set the Content-type header. */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
/* To send HTML mail, you can set the Content-type header. */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
/* additional headers */
$headers .= "From: some information\r\n";
/* and now mail it */
mail($to, $subject, $message, $headers);
?>