gple Posted February 7, 2007 Share Posted February 7, 2007 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 More sharing options...
Balmung-San Posted February 7, 2007 Share Posted February 7, 2007 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 More sharing options...
gple Posted February 7, 2007 Author Share Posted February 7, 2007 Dont some email addresses filter out emails that come in as BCC as spam and/or junk. Link to comment https://forums.phpfreaks.com/topic/37499-php-mail/#findComment-179344 Share on other sites More sharing options...
Balmung-San Posted February 7, 2007 Share Posted February 7, 2007 I wouldn't see why they would, BCC is just a Blind Carbon Copy. It's the same as a CC, but it won't show as appearing to you. It's fairly common practice to BCC things. Link to comment https://forums.phpfreaks.com/topic/37499-php-mail/#findComment-179345 Share on other sites More sharing options...
gple Posted February 7, 2007 Author Share Posted February 7, 2007 Thank you I will test. Link to comment https://forums.phpfreaks.com/topic/37499-php-mail/#findComment-179348 Share on other sites More sharing options...
Balmung-San Posted February 7, 2007 Share Posted February 7, 2007 Thank you I will test. That's about the best you can do. Send out a mass email to your users, and post something up publicly asking those who didn't receive the email to check their spam folders, and email you if it's still not there. Link to comment https://forums.phpfreaks.com/topic/37499-php-mail/#findComment-179350 Share on other sites More sharing options...
gple Posted February 8, 2007 Author Share Posted February 8, 2007 In the list of email address there are two AOL email accounts. It seems that the other addresses are getting the email but the AOL addresses are not. Any idea why this would be. Link to comment https://forums.phpfreaks.com/topic/37499-php-mail/#findComment-179718 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.