Jump to content

PHP Mail


gple

Recommended Posts

I have a list of email addresses in a table. I pull the email addresses and concatenate them together to put in the to: line of a php mail function. Unfortunately, everyone sees everyones else's email address. Is there any way around this? I have tried to put the php mail function in a loop to send a separate email to everyone in the list but my host does not allow a certain amount of emails to go out in a specified amount of time. I guess this is to fight against Spam. Anyone know how I can get around sending out one email to a bunch of addresses without all the addressses appearing in the to; line.

Link to comment
https://forums.phpfreaks.com/topic/37499-php-mail/
Share on other sites

Email it to some fake email address (i.e. "[email protected]"), and in the extra headers argument use "Bcc: ".your_email_list

 

That should work for you. Also, if you're using a From in your extra headers, make sure you place a \r\n between the two. Yes, the specifications do state to use \r\n instead of \n.

Link to comment
https://forums.phpfreaks.com/topic/37499-php-mail/#findComment-179340
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.