954,597 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how to hide email recipient list

I want to use PHP mail() function to send email to hundreds of users, in mail function I can set mail list like:
$sendto="user1@abcd.com,user2@xyz.com,user3@yahoo.com,.....";
But in this way when user receives this email, he can see all the email recipients at the top, I want to hide this info, is it possible to use:
$sendto="To Users";

Thanks for any comment.

michael123
Junior Poster in Training
94 posts since Jun 2005
Reputation Points: 10
Solved Threads: 0
 

why not send to some dummy address and then bcc the rest

campkev
Posting Pro in Training
484 posts since Jul 2005
Reputation Points: 14
Solved Threads: 19
 

or why not just loop through it and send it to each user individually, as most spam catchers dont really like BCC's

but otherwise BCC is the only way

paradox814
Posting Whiz
351 posts since Oct 2004
Reputation Points: 13
Solved Threads: 4
 
or why not just loop through it and send it to each user individually, as most spam catchers dont really like BCC's but otherwise BCC is the only way

this would be the best way. to have a list of the emails in a database and then itterate through the database like while count is less than or equals to the number of emails in the database. email the current count (value stored in the database) something to that effect.

Killer_Typo
Master Poster
781 posts since Apr 2004
Reputation Points: 152
Solved Threads: 39
 

Doing it this way is also more efficient for the server because as your mailing list grows, you can do batch jobs of XXX at a time to lessen server load. It also allows you to customize each email to each user, by using php variables within the mail messages. Makes it seem a lot more personal and you will probably get a better response rate.

cscgal
The Queen of DaniWeb
Administrator
19,437 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 231
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You