Rohan Shenoy Posted December 7, 2008 Share Posted December 7, 2008 Hi guyz, I am aware that the mail() function is not suitable for sending mass mails. I need to send an email to about 800 recipients. Can I use the Cc or Bcc fields? If used, will the mail() function run 800 times or will the SMTP servers handle it? Will recipients be able to see the Cc, Bcc addresses? Thank you -Rohan Quote Link to comment https://forums.phpfreaks.com/topic/135986-using-mail-for-mass-mailing/ Share on other sites More sharing options...
Yesideez Posted December 7, 2008 Share Posted December 7, 2008 http://uk3.php.net/function.mail Scroll down for "Example #4 Sending HTML email" it gives a basic idea of using it but Google can give you loads of sample scripts. CC = Carbon Copy (recipients will see this) BCC = Blind Carbon Copy (Recipients don't see this) You'd have to run a loop but I've no idea how the server will handle that many as it might time out. Your ISP may also have something to say about large numbers of emails being sent and may take action against you - best check! Quote Link to comment https://forums.phpfreaks.com/topic/135986-using-mail-for-mass-mailing/#findComment-708882 Share on other sites More sharing options...
Rohan Shenoy Posted December 8, 2008 Author Share Posted December 8, 2008 Thanks for the quick reply Yesideez! Quote Link to comment https://forums.phpfreaks.com/topic/135986-using-mail-for-mass-mailing/#findComment-708887 Share on other sites More sharing options...
Yesideez Posted December 8, 2008 Share Posted December 8, 2008 You're welcome! I know some ISPs and web hosts can be very funny when it comes to mass emails and rightly so - everyone hates spam. I've seen some web hosts limit the number of emails sent within a certain time. As I said - best check with them but they'll probably want to know what exactly it is you're doing and will monitor it. Quote Link to comment https://forums.phpfreaks.com/topic/135986-using-mail-for-mass-mailing/#findComment-708892 Share on other sites More sharing options...
DeanWhitehouse Posted December 8, 2008 Share Posted December 8, 2008 Use PHP mailer, or i believe there is a PEAR package. Quote Link to comment https://forums.phpfreaks.com/topic/135986-using-mail-for-mass-mailing/#findComment-708897 Share on other sites More sharing options...
Rohan Shenoy Posted December 8, 2008 Author Share Posted December 8, 2008 @Yesideez: Actually, my problem is not spam, all emails are legitimate, but I am using a cheap shared hosting, so I always have to be careful about resource consumption. If nothing works, then I will install a SMPT server on my localhost and send mass mails directly from my PC @Blade280891: Oh yea....I had actually forgotten it. Thanks for reminding! Quote Link to comment https://forums.phpfreaks.com/topic/135986-using-mail-for-mass-mailing/#findComment-708898 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.