Page 1 of 1

A replacement for a formmail cgi

Posted: Fri Jun 16, 2006 4:33 pm
by Luke
Does anybdody know of a decent php replacement for matt's formmail cgi? I need to set up some sort of mail form, but I don't really have time to do a whole lot of configuration. I need one that will just work with very little configuration.

Posted: Fri Jun 16, 2006 5:24 pm
by RobertGonzalez
Can you use d11's SwiftMailer? Not sure that is has the same fundamentals, but might be easy enough to port formmail to a PHP version.

On a side note, has anyone ever done that? I mean, I have seen this question asked here before. You would think at some point someone would have ported formmail to PHP.

EDIT | OK, I searched Google for 'CGI FormMail PHP Port' and the first hit was this page...

Not sure if it is worth anything.

Posted: Fri Jun 16, 2006 5:49 pm
by Luke
I haven't tried the one you just posted, but I tried about 4 others and all of them were horrible. For some reason one of them just didn't work... couldn't figure out why. I'll try the one you just posted.

EDIT: that one has almost no protection against spammers

Posted: Fri Jun 16, 2006 6:04 pm
by RobertGonzalez
Well then, I think I may be smelling a 'Best Code Snippet of the Year' award for a FormMail to PHP Port... :D

Posted: Sat Jun 17, 2006 4:14 am
by Chris Corbyn
The Ninja Space Goat wrote:I haven't tried the one you just posted, but I tried about 4 others and all of them were horrible. For some reason one of them just didn't work... couldn't figure out why. I'll try the one you just posted.

EDIT: that one has almost no protection against spammers
What sort of protection do you want? I was considering making a spam checker plugin but it will (in my idea of how it works) require php to be able to run shell commands (a perl script). The idea is that mail is passed through spamassassin and the score is checked against a level you set. If the score is higher than a certain threshold it mail will be dropped. Haven't got time to do this for a few days but is this something that would be a suitable plugin? I could see it used in two ways.

1. As a testing tool for seeing how likely legitimate mail is likely to be blocked as spam
2. When used in forms on web pages where the general public can post.

Posted: Sat Jun 17, 2006 12:13 pm
by John Cartwright
d11wtq wrote:1. As a testing tool for seeing how likely legitimate mail is likely to be blocked as spam
2. When used in forms on web pages where the general public can post.
Excellent idea d11, I am looking forward to this.

Posted: Sat Jun 17, 2006 11:36 pm
by neophyte
If you don't want to roll your own there is NateMail