Solved

php mailing script

Posted on 2009-07-15
3
191 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now