Solved

php mailing script

Posted on 2009-07-15
3
212 Views
Last Modified: 2012-05-07
Hi experts.
When I try to send a mailing to 5000 users of by database, I have some troubles:
1) some people do not receive the email at all
2) some receive it as junk
3) some do receive it

what I am trying to do is to correct at least the point 1)

My script is a "stupid" loop that uses the mail() function
It runs on a dedicated server with unlimited timeout.
It takes about 15 minutes to be executed.

Ii there a better way to do it ? Any avaible "reliable" script ?

Thanks
0
Comment
Question by:yarekGmail
  • 2
3 Comments
 
LVL 34

Accepted Solution

by:
gr8gonzo earned 500 total points
ID: 24861774
If some people ARE getting it, then it's probably not a problem with your script. The mail() function usually just passes the mail off to the server, and the server becomes responsible for actually delivering the mail.

What you're describing is simply people's mail servers doing spam filtering. Some people's mail servers will try to simply block the message completely, others "rate" the message and deliver it as spam, etc...

Here's an article on email delivery:
http://jonathan.hilgeman.com/2008/improving-email-delivery
0
 
LVL 14

Expert Comment

by:profya
ID: 24862958
You can make a log, when mail() method fails, the script drops you a record with the details. This way you can know what problems it encounters.
0
 
LVL 14

Expert Comment

by:profya
ID: 24863098
This part of the script can be enhanced I think, if it fails because of network traffic the you can queue failed jobs to resend later or something like that.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question