Forum Moderators: open

Message Too Old, No Replies

Automate emails to send every 30 minutes

automating email, newlstters

         

drooh

9:48 pm on Apr 3, 2007 (gmt 0)

10+ Year Member



Here is the scenario. We have a database of 500+ emails that is continually growing. We send out a monthly newsletter. Currently we are doing this manually by sending about 15 emails at a time as to avoid be labeled spam.

My question is:

*Is there a way to use javascript w/ php to automate a newsletter to send every 30 mins to a different group of emails?

I currently have a way to poll out a set number of emails at a time into an array, but can this be automated?

Any comments or suggestions welcomed, thanks!

Dabrowski

10:44 pm on Apr 3, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why use JS, where is the data stored, in what database?

rocknbil

11:23 pm on Apr 3, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Agreed, you want to do this server-side because:

- you will want to execute the timed emailings with a cron job
- you will want to record each mailing somewhere in your database so you can review which emails were sent, and when
- emailing from the server-side in an automated process is by far less demanding that a web-initiated process
- a server-side process is probably much more secure because you shouldn't have it accessible by the web in any way

drooh

11:36 pm on Apr 3, 2007 (gmt 0)

10+ Year Member



sweet, so what do i do?
can php do this by itself?
if so can you point me in the right direction..?


Why use JS, where is the data stored, in what database?

I dont know why use js, that's why im asking, silly...
as for the emails, yes they are in a mysql db.

rocknbil

5:57 am on Apr 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I would do the email programming in perl, but most people would suggest php.

Dabrowski

10:18 am on Apr 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I use Perl/MySQL on some very big database web frontend apps. I would use Perl.

Also you can install Perl as a service on your server to do this completely in the background. If it was a big/regular job I'd do it that way, and get it to email me when it's done for a status report.