jfleck25;11054527 wrote:This is an email blast script that is suppose to fire an email to all emails in my sql database but its not happening... What is wrong? This code is several years old.
Answering your own questions? 😉
Q: What is wrong?
A: This code is several years old.
But seriously, and don't take any of this personally ... the first thing you should do is verify that the DB connection works. And then verify that it actually returns something that would allow the script to work. I'd hesitate to call this script "trash", but it doesn't bother verify anything before going to the next step.
Oh, and this:
to all emails in my sql database
is counteracted by this:
So it will only send it to your entire database if your entire database is 20 people or less.
If you really don't know how to debug this, I'd recommend reading [thread=10240608]Debugging 101[/thread].