I am trying to send newsletters to my subscribers. But when i am sending mail successfully sended but whoever receives the mail see the all emails where this mail is sended. I want to hide that all emails. I want that show - “to (Receiver adress)”
I’d implode() the $emails variable into an array of email addresses, then use a foreach() loop to create an individual message for each recipient, send the message, loop around to the next address until done.
The quick and easy way, as noted by @jeffreylees above, is to just change this line
$email_to = "$emails";
to
$email_to = "youremail@yourdomain.com"
That way the mail will be sent to your address, with a BCC copy to each address in $emails.
The emails will all be sent separately anyway so doing that only results in one more email being sent (to yourself) than if you send them all separately in the first place. The difference if you send them separately is one less is sent and also the recipient appears in the to address.