Alex Pooley's Blog

Hello there, my name is Alex Pooley and I'm a freelance web developer residing in Perth, Western Australia. My passion is in the development of web sites that solve everyday problems. Here's a gallery of some of my notable work. If you need a web site designer or developer, contact me with further details. Lastly, you can read more about me.

PHPList TEST Default

March 19th, 2008

Why don't you subscribe to my blog while you're here? I'm a freelance web developer and I blog about Ruby, Rails, and business online.

Go ahead and subscribe to my RSS feed. Thanks for visiting!

I was trying to get PHPList to email a large group of people but was having trouble getting it to send a “test email”. A “test email” in PHPList is where you send an email to a special set of people to preview what the email would look like before hammering everyone on the list. Anyway, after coming “this” close to trashing my efforts, I took one last scan through the 660 odd line configuration file when I spotted these lines:

# if test is true (not 0) it will not actually send ANY messages,
# but display what it would have sent
define ("TEST",1);

According to those lines in my configuration file, I won’t actually be able to send emails, but I should know that they would have been sent, err.. right? Well, that wasn’t the case for me because my “test emails” were simply failing with no hints as to why. But as is the case when playing with software I thought I would simply flick the TEST switch to 0 (false) and see what I could blow up.

Yeah you guessed it, defining TEST as 0 fired off my “test emails” no problems.

PHPList looks very promising, and at a bargain price of $free, it’s quite brilliant. Shame about the default TEST safe guard though, I’m sure that’s ruined many a users efforts to get PHPList running.

I hope this saves someone many hours of frustration.