मैं बीसीसी मेल कैसे बना सकता हूं? अगर मैं वह मेल भेजता हूं, तो यह मुझे सभी प्राप्तकर्ता दिखाता है!PHP मेल बीसीसी एकाधिक प्राप्तकर्ता
$to=array();
$members_query = mysql_query("select email from members");
while($row = mysql_fetch_array($members_query))
{
array_push($to, $row['email']);
}
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n";
// Additional headers
//$headers .= 'To: '.$newName.' <'.$newEmail.'>' . "\r\n";
$headers .= 'From: SmsGratisan.com <[email protected]' . "\r\n";
mail(implode(',', $to), $title, $content, $headers);
धन्यवाद!
आप प्राप्तकर्ताओं की सूची के साथ एक बीसीसी हैडर जोड़ने की जरूरत है। उदाहरण के लिए [मैनुअल] (http://php.net/manual/en/function.mail.php) देखें। –