Solved

sending newsletters via php & mysqld

Posted on 2011-03-16
4
178 Views
Last Modified: 2012-08-13
Hi,
I have a script for sending newsletters.

my ISP has advised me to set a sleep command of 10seconds every 50 emalis so as to batch them and avoid a few issues.

I'm findng this can lock the browser

One suiggestion
Create a cronjob that runs every 30 mins
It searches a database for newslettter requests
After executing the script to send newsletters,  it deletes the records

In my script, I'd create the record with any variables before returning control to my browser
then wait for the cronjob

Can anyone highllight issues with this approach and/or offer better options
thanks
0
Comment
Question by:joomla
[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
4 Comments
 
LVL 34

Expert Comment

by:Beverley Portlock
ID: 35148083
Your basic approach is correct, but I would add these comments

1) If anything goes wrong it sounds like your ISP will not be best pleased. You may breach the Acceptable Use Policy

2) Use ConstantContact or GraphicMail. They will both do this job for you and the statistical analysis tools are good. The emails are very cheap to send. Both companies offer demo accounts for free.

These companies have already solved the email campaign as a problem and they are very, very cost effective. Don't waste your valuable time reinventing the wheel and trying to save a few pennies.
0
 
LVL 14

Accepted Solution

by:
EMB01 earned 250 total points
ID: 35148349
Instead of deleting newsletters after it send them, just add another field called "sent" and update the records once they are sent.  When you send you newsletters, only records that have not yet been sent will be sent.  I created a mass mailer and it worked very well, and it didn't cost me anything but hosting and my time.  I had a pretty good click-through rate, too.
0
 

Author Comment

by:joomla
ID: 35169744
thanks for your feedback EMB01
not sure it's worth 250 points.
Are there any limitations you can think of or spam guidelines I need to consider

Will cronjob set to 30mins be too resource intensive?
htnaks
0
 
LVL 14

Expert Comment

by:EMB01
ID: 37680014
>>  not sure it's worth 250 points.

Thanks, buddy!

>>  Are there any limitations you can think of or spam guidelines I need to consider

Check the SPF and domain keys for your sending IP.

Will cronjob set to 30mins be too resource intensive?

>>  Depends on your server requirements.  The server I sent from didn't have much traffic, so I maxed her out when sending emails.
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

This article will show, step by step, how to integrate R code into a R Sweave document
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
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…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

623 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