Solved

php mailing script

Posted on 2009-07-15
3
227 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 35

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
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…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

734 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