Quote by jlawrence: One thing I don't like about that code is that it relies on your webserver to be able to receive emails - imho, webservers are exactly that, they shouldn't have open incoming port 25.
Yes, this is what easymoblog uses and it works well.
To use publishbymail, ftp it into your geeklog website directory. You can use cpanel to set up a mail forward and enter the email address then
| /usr/bin/php -q /home/user/public_html/websitename/publishbymail.php
It works, but I was getting an error email returned eventhough the post was successful. It was due to blank lines at the end of the script, after the ending question mark ?> . Deleted them and now works fine.
I've also now found you should be able to use ~/.procmailrc instead of /etc/aliases or /etc/procmailrc, but it doesn't work on my ISP, only my own Fedora PC.
Using with procmail instead of sendmail alias:
1. don't add the forward in the alias file
2. take "#!/usr/bin/php" out of the script.php (first line)
3. add this to your procmailrc (usually /etc/procmailrc or ~/.procmailrc):
| /usr/bin/php -q /home/user/public_html/cgi-bin/publishbymail.php