Jump to content

PHP Mass Mail


waynew

Recommended Posts

I need to create a newsletter script that doesn't kick the crap out of the server that it's on. I know that looping the mail function is a stupid idea. I found this article just a few moments ago and I'm just wondering if it's an ok method to use? Or should I go with something better? Any links to good classes etc would be great.

Link to comment
Share on other sites

Dunno what the article says, but you'll want to use something that doesn't open and close the connection to the SMTP server constantly (like mail()) does. You might even want to put some of the mails in a queue to restrict the number of emails you send out per X units (e.g. you might only want to send out 300 emails per hour).

Link to comment
Share on other sites

there is an even more efficient way of doing this. You will need a dedicated server and need a hosting provider who will let you setup email forwarding.

 

Since this list is static (not going to change) you should create a unique, hard to guess email address that will automatically forward the email to everybody. The initial setup will be pain in the ass, but once you do the intial setup sending subsequent emails would be a piece of cake - and you could even do it from the convience of your own email account!

 

There are several tricks though - you need a dedicated smtp email forwarding system setup with your dedicated host. Moreover, the email forwarding address needs to be hard to guess. And people should NOT know what that address is when you send the email out.

 

I know this sounds a lot more complicated than a simple php function, but this is definitely the most efficient way of doing it. BY FAR.

Link to comment
Share on other sites

Thanks. The only problem though is that this newsletter system is going to be deployed on a few websites (admin login etc), so I'm doubtful that any of them will have dedicated hosting. Most-likely shared hosting. I'm guessing that since they're small businesses, that they won't have too many people to email.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.