A replacement for a formmail cgi

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

A replacement for a formmail cgi

Post 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.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post 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
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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.
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

If you don't want to roll your own there is NateMail
Post Reply