Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Macman1993

macrumors 6502
Original poster
Nov 23, 2007
337
16
Hey guys I am looking to have a webform on a website that will email you whatever a user inputs to it (text only). I have seen one thing called formmail but I couldn't make sense of it due to knowing nothing about perl. Does anyone know of a good way to do this? I would really appreciate any help from you guys.
 
You could combine PHP's mail() function with the results from the form using $_POST variables.

It could look something like this:

$name=someValidatingFunction($_POST['name']);
$to='youremailadress@domain.com';
$subject='subject';
$message='name :'.$name.'blabla etc....';
mail($to,$subject,$message);
 
try this

funny thing is ran into the same problem recently...

Most of the sites I've made had the form mail feature as part of the hosting package... this made it easy to create one and insert into your site. So first thing I would check is if your web hosting provider includes it in your package or cpanel.

If not, I found a pretty good workaround that, so far, seems work great and is reliable thus far - www.emailmeform.com (use the free service - up to 5 forms - need to include a link back)

hope that helps!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.