Question

I am writing an admin notification sytem for my custom CMS. So I am planning of adding a bcc to all the users of sites. So here are my questions?

  • Is bcc better than the foreach($user){mail()} function? in terms of server resource usage?
  • How many bcc's will the server support?

Thank you.

Was it helpful?

Solution

A direct mail to a user is usually the 'nicer' option, as it allows you to personalize it. The advantage for you is that you may get the chance to get some feedback by adding a unique id for each mail to each url that links back to your site. Using bcc is just one mail (from the view of your php server), but you shouldn't really worry about server resources here.

Limits for bcc seem to depend on your provider. I have seen limits ranging from 5 too 500. Sending too many mails at once may also not work due php processing time limits. For many users you will have to split the sending in both cases.

OTHER TIPS

PHP is just the transporter of your request to the SMTP Server, so there is no limitations in PHP What so ever.

You can check your SMTP Servers limitations to see how many you can actually attach the the email.

using bin carbon copies will not really save you that much resources as the SMTP Server Still has to send an email to all attached recipients, this being said the only thing BCC Does for you is hide the email addresses in each email dispatched.

  1. BCC is, lets say, hidden recipients. So if you'll add recipients to BCC users will receive your message, but their emails will not be displayed in "to" or "copy" list.
  2. Max count of BCC recipients depends on mail server.

Well, this only works if you send the exactly same message with no personal/individual information in it, like all would receive this same message:

hello world

and not

Dear Mr. XY

or

Dear Ms. AB

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top