Archive for September, 2007

SMTP server response: 553 5.3.0 … DISCARD Spam Relay

Wednesday, September 26th, 2007

[Sending email from a Windows server using PHP]

I got the cryptic error message above while trying to send email using PHP from a Windows server.  Turned out that the problem was that php.ini had set the sendmail_from entry to the silly value “me@localhost.com.”  Since this is a shared hosting situation, we couldn’t change php.ini directly.  However, we were able to use the ini_set function in the script that sent the mail:

ini_set(”sendmail_from”, “a-real-address@the-actual-domain.com”);

This fixed the problem.

Printing your code on the Macintosh

Tuesday, September 25th, 2007

I am doing some PHP work for LarryBeth now. I have switched from Windows to the Macintosh for development work, and for a text editor I use TextMate. I really like it, but its printing support is terrible. (It seems as if many people who create text editors forget about printing. I like to see code on paper — call me old-fashioned if you must.) The rough equivalent on Windows of TextMate is TextPad, and TextPad’s printing is pretty good.  If you’re looking for an editor on the Mac with good printing support, I recommend jEdit.