This is a discussion on Need a good formmail script within the Coding Help forums, part of the Webmaster Help category; Hey guys, As the subject implies, I'm looking for a decent script (php/perl) that'll mail form data. I'm looking for ...
| |||||||
| Register | Forum Rules | FAQ | Donate | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||||
| I write my own, this way I know what's going on. If you want to go that way, just post what you have and lets see if we can get it working properly without errors.
__________________ :. Web Design & Development Web Design Ireland :. Search Engines Optimization Search Engines Optimization :. Directory Submission Directory Submission :. News & Press Release Ireland GiveItSocks.com :. Used Cars Ireland, Car Parts & Car Audio Cars For Sale, Car Parts & Accessories :. I Have 2 Find It Directory SEF Directory |
| |||||
| I use a script that i wrote myself, it an easy to use one that basicly you just change or add your fields and then change the email address! your caal if you want it! |
| |||||
| Ah good, so it's not just me then I suppose it's a simple enough matter to put the functionality in place, but I'm extremely paranoid about writing exploitable code. The last thing you want is to get your domain spam-listed because you overlooked something. I think the good thing about using well known and widely used scripts is that they've already had months/years to get hammered on... but then a custom script can have everything hard-coded and has the benefit of obscurity. @ziycon: Thanks, I'd be interested in having a look at it. I've already got a referer whitelist function written along with a few different input validation funtions, but I'd be interested in seeing how you're implementing mail() since I haven't used it before. |
| |||||
| I can send you the one I use here Contact us : EirJobs.com : Irish Jobs Resourcer I'm not sure where I got it from but it does us a CAPCHTA, which stops silly bots submitting things. Sadly it didn't stop a silly person a submitting their CV to me. Here is the mail function PHP Code:
__________________ my sites : irish poker / irish jobs / seo faq / advertise jobs free / green card / skiing Last edited by paul; 22-03-2007 at 02:47 PM. Reason: more details ! |
| |||||
| PHP Code: |
| |||||
| there is something I use with Ajax as well to check a form PHP Code: |
| |||||
| After a marathon weekend of coding, I finally finished it (is it ever really finished?)... as expected the logic & functionality was easy, but I had a lot of reading to do about mail() injection. I think I've plugged the injection holes... at least for the limited type of data I've got it configured to accept (I can afford to be strict and unforgiving). |
| |||||
| Do you have questions on writing one? or are you just looking for a script? Where I'm at now, it fits the bill for the site it's being used on and not much else... try'n plug any other form element into it and see how fast you have to write more code. Unless you know your way around regular expressions and want to spend a few hours adding functions, I'd steer clear of my script A more mature/flexible formmail script I was using prior to doing my own was the one here: http://www.boaddrink.com It seems good and was quite easy to set up, and as well as having the features there's a support forum for it... so any setup questions/problems you have with it are probably already answered. tbh I could have saved myself hours of wheel-reinventing if I'd just had the patience to figure out how to customise it the way I wanted... oh well. |